[SOLVED] touch file on network drive

ForeverNoob

New Member
Joined
Mar 30, 2021
Messages
18
Reaction score
6
Credits
153
Hi,

Doing touch filename, when the file is on a network drive, works fine. touch -m filename, however, doesn't work, and an error message says Operation not permitted. Same with other variants, like touch -t.

Any clues on how to solve this?

TIA
 


Hmm... What permissions do you have on said network drive? Does your user have permission to create, delete, and edit files?
 
Hmm... What permissions do you have on said network drive? Does your user have permission to create, delete, and edit files?
File permissions:

-rwxrwxrwx 1 root root 2116127 Aug 8 07:06 myfile

Parent folder permissions:

drwxrwxrwx 2 root root 0 Aug 8 07:26 myfolder

Not sure why owner is root, though. These files and folders created on this drive under normal user permissions.
 
Hi,

normaly the default user of networkdrives is nobody:nobody or nobody:nogroup on nfs drives. Check your mount parameters. Or did you use an other network files system? If yes which network filesystem you use how do you mount (which command?)
 
Hi,

normaly the default user of networkdrives is nobody:nobody or nobody:nogroup on nfs drives. Check your mount parameters. Or did you use an other network files system? If yes which network filesystem you use how do you mount (which command?)
This is from my fstab:

//wdmycloud/Public /mnt/nas cifs username=anonimous,password=,iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
 
how does the samba config on the server look like?

and is that a guest user?
 
Got it. All I had to do was to add uid=myuserid,git=mygroupid to the relevant entry in fstab.

Thank you everyone.
 

Members online


Latest posts

Top