belthezar
20th May 2004, 06:23 PM
Ok, I am really wracking my brains over this one. I have done this for several years under Linux, but for whatever reason the following is not working in FC2.
I am able to mount smbfs shares all day long from the command line and they work perfectly. I can mount as root and then login as my user account and work on them no problem whatsoever. BUT, if I setup /etc/fstab to allow easier mounting, no one is able to read the mounts - not even root! For instance even a simple ls gives:
[root@avod-sandej-lx mnt]# ls it/
ls: reading directory it/: Permission denied
The odd thing is that I get no errors when mounting through fstab, and it is doing permissions like I am asking it to do.
I have done every combination I can think of in /etc/fstab but here is my most recent one. Even very simple ones do not work:
//fileserver/it /home/sandej/mnt/it smbfs noauto,rw,user,username='domain\sandej',password=' ****',uid=500,gid=100,dmask=770,fmask=660 0 0
And if I do an ls -l on the directory, you can see it did as I asked:
[root@avod-sandej-lx mnt]# ls -l
total 12
drwxrwxr-x 2 sandej sandej 4096 May 18 16:49 home
drwxrwx--- 1 sandej users 4096 May 20 13:08 it
drwxrwxr-x 2 sandej sandej 4096 May 19 10:51 main
Any ideas are greatly appreciated.
Jim
I am able to mount smbfs shares all day long from the command line and they work perfectly. I can mount as root and then login as my user account and work on them no problem whatsoever. BUT, if I setup /etc/fstab to allow easier mounting, no one is able to read the mounts - not even root! For instance even a simple ls gives:
[root@avod-sandej-lx mnt]# ls it/
ls: reading directory it/: Permission denied
The odd thing is that I get no errors when mounting through fstab, and it is doing permissions like I am asking it to do.
I have done every combination I can think of in /etc/fstab but here is my most recent one. Even very simple ones do not work:
//fileserver/it /home/sandej/mnt/it smbfs noauto,rw,user,username='domain\sandej',password=' ****',uid=500,gid=100,dmask=770,fmask=660 0 0
And if I do an ls -l on the directory, you can see it did as I asked:
[root@avod-sandej-lx mnt]# ls -l
total 12
drwxrwxr-x 2 sandej sandej 4096 May 18 16:49 home
drwxrwx--- 1 sandej users 4096 May 20 13:08 it
drwxrwxr-x 2 sandej sandej 4096 May 19 10:51 main
Any ideas are greatly appreciated.
Jim