LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-14-2004, 11:26 PM   #1
mickboda
Member
 
Registered: Jul 2002
Location: Sydney
Distribution: Kubuntu Edgy
Posts: 74

Rep: Reputation: 15
smbmnt,fmask=,dmask=,umask= ARRGGHHH


Hi all,

Please help me make heads or tails or this.

all drives mount and are readable as root using mount -a from console.

I have set up icons on the desktop to each drive, but they won't allow me to mount as a user. here is the relevant section of the /etc/fstab file.

//server/dropbox1 /mnt/dropbox1 smbfs uid=root,password=,rw,dmask=0000,fmask=0000,umask=0000
//server/dropbox2 /mnt/dropbox2 smbfs uid=root,password=,rw,dmask=0000,fma
sk=0000,umask=0000
//server/dropbox3 /mnt/dropbox3 smbfs uid=root,password=,rw,dmask=0000,fma
sk=0000,umask=0000

I would like users to be able to mount the drives and have read, write adn execute permissions.

I have run chmod a+s smbmnt. I did the same to smbmount, but apparently this is a really bad idea, so I THINK I have fixed that.

Here the Permissions for smbmnt and smbmount incase the problem lay here.

-rwsr-sr-x 1 root root 560774 Apr 6 2003 smbmnt
-rwxr-xr-x 1 root root 571222 Apr 6 2003 smbmount

Because I can log in and access the drives as root, I don't think the following is where the problem is, but a full picture.....

I have an e-smith server which acts as the internet/DHCP server. The windows box 'server' is another machine on the network. it has three drives shared as dropbox1, 2 & 3 respectively. There is no login required on the box and it runs Win98 SE. The drives are shared with user access. the network logon is set to Windows Logon for the win98 box.

I used to be able to mount samba shares from the e-smith server using

//esmith/esmithr_bay /mnt/esmith smbfs username=nobody,password=,dmask=0777,fmask=0777,user,auto,user,rw 0 0

This string does not appear to work when editted to accomodate the 'server' settings.

Any help appreciated.

Mick
 
Old 12-21-2004, 09:58 AM   #2
Glitch010101
LQ Newbie
 
Registered: Mar 2004
Location: New York City
Distribution: Fedora Core 3
Posts: 4

Rep: Reputation: 0
Re: smbmnt,fmask=,dmask=,umask= ARRGGHHH

Quote:
Originally posted by mickboda

//esmith/esmithr_bay /mnt/esmith smbfs username=nobody,password=,dmask=0777,fmask=0777,user,auto,user,rw 0 0

This string does not appear to work when editted to accomodate the 'server' settings.

Any help appreciated.

Mick [/B]
it appears that for some reason instead of dmask and fmask entries, you need uid and gid entries.

For example
Code:
//esmith/esmithr_bay         /mnt/esmith     smbfs  username=nobody,password=,uid=500,gid=500 0 0
Where uid=500 and gid=500 are replaced by the uid and gid of the user you want to have access.
 
Old 12-21-2004, 10:20 AM   #3
FiveFlat
Member
 
Registered: May 2003
Location: N. California
Distribution: FC3 2.6.9
Posts: 110

Rep: Reputation: 15
http://www.linuxquestions.org/questi...hreadid=128624
 
Old 12-23-2004, 05:04 PM   #4
timin
LQ Newbie
 
Registered: Jun 2004
Distribution: Mandrake 9.1, trying 10
Posts: 4

Rep: Reputation: 0
Group RW rights to SMB share

I have a similar issue: Each of my SMB users are able to access my target shared director(ies) with RW permissions initially. As soon as they access a file or futher, write to a file, that file then changes its access rights to be 0022, i.e., the group members can no longer write to it. I need the RW rights to be maintained.

I have edited the profile files I could locate to include a line UMASK 0006 but this changes nothing.

Any ideas?
 
  


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
Why is fmask & dmask required to write to a WinXP share mounted on Mdrake SMB client ruscook_oz Linux - Networking 1 02-08-2007 05:50 PM
USB memory stick issues...Arrgghhh! mattbellis Linux - Hardware 0 09-19-2005 11:40 PM
getting fat32 (Win98SE) part to mount with dmask and fmask options Simon Bridge Linux - General 3 06-22-2005 01:50 AM
dmask=,fmask=,umask= ARGHHHHHHH mickboda Linux - General 1 03-16-2004 04:32 AM
umask,dmask,fmask mmm Linux - General 1 08-14-2003 12:29 AM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
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