LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mount. root rw:ok. user rw problems (https://www.linuxquestions.org/questions/linux-networking-3/mount-root-rw-ok-user-rw-problems-702736/)

nullnill 02-06-2009 08:56 AM

mount. root rw:ok. user rw problems
 
Hi.

So I mounted a directory over the network. This is my fstab entry:
Code:

//192.168.100.100/files /mnt/files cifs rw,username=uname,password=passw,_netdev,uid=1000,gid=100 0 0
As root I can nano,pico,vi, etc. a file and save.
As user I can nano a file and save. (Hurray for console).

If I try and modify one of the existing files in the mount it gives me a "Error writing /mnt/files/file.txt No such file or directory".

My local user id is the same user id of the files on the remote machine. eg 1100 here, 1100 there. group id is the same on both machines.

Hope anyone can help.

tquinn1 02-07-2009 01:56 AM

if your uid is 1100, if you look at your post you have it as 1000. Not sure if that was a copy paste, or if the 1100 was a typo on your part, but the second syntax looks correct if your uid is 1000. If you manually mount it with a

mount -v //192.168.100.100/files /mnt/files cifs \ rw,username=uname,password=passw,_netdev,uid=1000,gid=100 0 0

what the output would be.

nullnill 02-09-2009 06:36 AM

1100 was just an example. no mistake there.

verbose prints this:

"mount.cifs kernel mount options unc=//192.168.100.100\files,ver=1,rw,username=uname,password=passw,uid=1000,gid=100"

what it gives me on nano an existing file is the "no such file or directory".

I got another machine which mounts from same place, just different dir according to user and it works.


All times are GMT -5. The time now is 05:05 AM.