Permission denied with Samba file shares

Q My problem is with mounting a network share from a Windows file server that I connect to from my Red Hat Enterprise Linux 3 system. I mount the share as root.

[root@office root]# mount -t smbfs -o username=user,password=password
\\\\\\public /mnt/fileserver/
[root@office mnt]# pwd
[root@office mnt]# ll
total 16
drwxr-xr-x 2 root root 4096 Aug 15 19:31 cdrom
drwxr-xr-x 2 root root 4096 Aug 15 19:31 floppy
drwxr-xr-x 1 root root 4096 Nov 29 08:01 fileserver

I can view, edit and delete anything as root, but as an user on the system I can't do those options as I just get this message:

[dennis@office office]$ cd fileserver/
bash: cd: fileserver/: Permission denied

I've changed the group and the permissions of the directory, with no luck. If you have any suggestions, they would be much appreciated!

A All the credentials required to log onto the fileserver come from the command line you're using to do the mount. The permissions you have in place should be sufficient to allow the user to at least get a directory listing. One thing I can pick up from the information you've given me is that you're trying to cd into the fileserver directory from the office directory and not from the /mnt directory:

[dennis@office office]$ cd fileserver/

Try the command again after running cd /mnt. If you're still having trouble, try getting a newer version of Samba - it's updated quite regularly on There are binaries for Red Hat 9 that are fully compatible with EL3. You'll need to remove Samba and samab-common from the RPM database and install the single Samba RPM from ther site.

Follow us on or Twitter

Username:   Password: