LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 10: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 01:05 PM.
 
Old 08-13-2006, 08:56 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

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


Reply



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 08:53 PM
Samba share permissions anorman Linux - Software 1 10-22-2005 02:49 AM
I need help setting samba share permissions. trilect Linux - Software 10 08-24-2004 07:56 AM
samba share permissions? psychomaniac Linux - Software 4 04-29-2004 02:22 PM
Samba Share Permissions stever Linux - Newbie 4 05-17-2003 02:26 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:21 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
Open Source Consulting | Domain Registration