I'm using Samba 2.0.6 on a Linux server. When using smbmount or mount to mount a share from an NT server, how do I set file permissions. An older smbmount allowed a -d and -f switch to set the file permissions. The newest one does not support these. The man pages for smbmount and smbmnt mention using syntax that does not work. I finally have gotten the mount command to work, but now I can't write to the share because of permissions. Help!! Cary Mader cary.mader@eds.com
typing 'umask 0000' prior to executing the mount command seems to work. Not sure if that is the preferred method or not. Saw a comment on umask in another thread and thought I'd try it. Thanks, Cary> -----Original Message----- > From: Mader, Cary J > Sent: Wednesday, November 17, 1999 3:18 PM > To: 'samba@samba.org' > Subject: file permissions and smbmount > > I'm using Samba 2.0.6 on a Linux server. > > When using smbmount or mount to mount a share from an NT server, how do I > set file permissions. An older smbmount allowed a -d and -f switch to set > the file permissions. The newest one does not support these. The man > pages for smbmount and smbmnt mention using syntax that does not work. > > I finally have gotten the mount command to work, but now I can't write to > the share because of permissions. > > Help!! > > Cary Mader > cary.mader@eds.com >
*- On 18 Nov, Mader, Cary J wrote about "file permissions and smbmount"> I'm using Samba 2.0.6 on a Linux server. > > When using smbmount or mount to mount a share from an NT server, how do I > set file permissions. An older smbmount allowed a -d and -f switch to set > the file permissions. The newest one does not support these. The man pages > for smbmount and smbmnt mention using syntax that does not work. > > I finally have gotten the mount command to work, but now I can't write to > the share because of permissions. >Can you give some examples of your command line and the resulting file and directory permissions? I have not had any trouble using the new fmask and dmask options. Although I think they are really being used as modes and not masks. I.e. for rwxr--r-- permissions on the files you would use fmask=744. Brian Servis -- ------------------------------------------------------------------------ Mechanical Engineering | Never criticize anybody until you Purdue University | have walked a mile in their shoes, servis@purdue.edu | because by that time you will be a http://www.ecn.purdue.edu/~servis | mile away and have their shoes.
I don't want to sound stupid, but I probably will anyways, so.... what fmask and dmask options? Where/how are they used, i.e. what is the syntax? Also, what is the syntax now for setting user and group id's? And...where is this stuff documented...I've never seen it in the man pages or other documentation. Thanks, Cary -----Original Message----- From: Brian Servis [mailto:servis@purdue.edu] Sent: Wednesday, November 17, 1999 4:11 PM To: Mader, Cary J Cc: samba@samba.org Subject: Re: file permissions and smbmount *- On 18 Nov, Mader, Cary J wrote about "file permissions and smbmount"> I'm using Samba 2.0.6 on a Linux server. > > When using smbmount or mount to mount a share from an NT server, how do I > set file permissions. An older smbmount allowed a -d and -f switch to set > the file permissions. The newest one does not support these. The manpages> for smbmount and smbmnt mention using syntax that does not work. > > I finally have gotten the mount command to work, but now I can't write to > the share because of permissions. >Can you give some examples of your command line and the resulting file and directory permissions? I have not had any trouble using the new fmask and dmask options. Although I think they are really being used as modes and not masks. I.e. for rwxr--r-- permissions on the files you would use fmask=744. Brian Servis -- ------------------------------------------------------------------------ Mechanical Engineering | Never criticize anybody until you Purdue University | have walked a mile in their shoes, servis@purdue.edu | because by that time you will be a http://www.ecn.purdue.edu/~servis | mile away and have their shoes.