LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 08-10-2006, 11:00 AM   #1
keisinger
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
//using-vss01.xxx.net/ATGBuilds
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 *********************
//using-vss01.xxx.net/ATGBuilds /opt/builds smbfs credentials=/etc/samba/.smbpa
sswd,uid=atgdev,gid=atg 0 0


Any help would be appreciated.

Thanks,

Kurt

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 *****************
//using-vss01.xxx.net/ATGBuilds /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.

Kurt

Last edited by keisinger; 08-10-2006 at 02:05 PM.
 
Old 08-13-2006, 09:56 AM   #2
uselpa
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).
 
  


Reply


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


All times are GMT -5. The time now is 06:04 PM.

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