Help answer threads with 0 replies.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 08-10-2006, 11:00 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Question samba share permissions

I am trying to mount a samba share rwx to the owner and group but no matter what I try with the smb.conf file it always mounts 0755 and not 0775.

*************** output of df command ******************
[root@server]# df -h /opt/builds
Filesystem Size Used Avail Use% Mounted on
8.5G 7.8G 682M 93% /opt/builds

*************** output of ls command ******************
[root@server]# ls -ld /opt/builds
drwxr-xr-x 1 atgdev atg 4096 Aug 9 23:42/opt/builds

*********** entry in /etc/fstab *********************
// /opt/builds smbfs credentials=/etc/samba/.smbpa
sswd,uid=atgdev,gid=atg 0 0

Any help would be appreciated.



I finally figured this out myself. I had to add fmask = 0775 and dmask = 0775 to the mount command it the /etc/fstab.

*********** entry in /etc/fstab *****************
// /opt/builds smbfs credentials=/etc/samba/.smbpa
sswd,uid=atgdev,gid=atg,fmask=0775,dmask=0775 0 0

Thanks to anyone who took a look at this for me.


Last edited by keisinger; 08-10-2006 at 02:05 PM.
Old 08-13-2006, 09:56 AM   #2
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Try adding "dmask=0000" to the mount options (just guessing, after reading man smbmount).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting permissions for samba share eagle63 Linux - Newbie 2 12-23-2005 09:53 PM
Samba share permissions anorman Linux - Software 1 10-22-2005 03:49 AM
I need help setting samba share permissions. trilect Linux - Software 10 08-24-2004 08:56 AM
samba share permissions? psychomaniac Linux - Software 4 04-29-2004 03:22 PM
Samba Share Permissions stever Linux - Newbie 4 05-17-2003 03:26 AM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration