Re: smb not mounting share for specific user (SOLVED)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2008-07-07 at 20:42 +0000, redhatdude@xxxxxxxxxxxxx wrote:
> 
> -------------- Original message ----------------------
> From: Craig White <craigwhite@xxxxxxxxxxx>
> >
> > On Mon, 2008-07-07 at 19:34 +0000, redhatdude@xxxxxxxxxxxxx wrote:
> > > 
> > > -------------- Original message ----------------------
> > > From: redhatdude@xxxxxxxxxxxxx
> > > >
> > > > Hello,
> > I added a user with useradd. Then added the user to smb with smbpasswd -a. 
> > Then 
> > > > restarted smb.
> > > Now, I can mount the samba share using my user name. However, when I try to 
> > > mount the share with the newly created user, even though I log in and smb 
> > > > accepts the user and password, it gives me the following error:
> > > > The volume "Storage" could not be mounted
> > > > Anybody knows what the issue is here?
> > > > Thanks,
> > > > EJ
> > > > 
> > > I forgot to add the user to the valid user of the share.
> > ----
> > 1. it is more useful to use 'groups' instead of users...
> > 
> > You can set the group ownership of the share and folders inside...
> >    i.e. image /home/samba/files is a file share for samba users
> >    chgrp samba_users /home/samba/files -R
> >    chmod g+w,g+w /home/samba/files -R
> >    add @samba_users to share (valid users = @samba_users)
> > 
> > now all files and folders are owned by 'samba_users' group and all new
> > files and folders will likewise be owned by 'samba_users' group
> > 
> > 2. You don't need to restart samba after changes to smb.conf as the
> > configuration file is reloaded automatically every minute (I think), but
> > if it makes you feel better to restart samba service...by all means.
> > 
> > Craig
> 
> Maybe a dumb question. Do I need to create a new group in the system with groupadd samba_users?
> Thanks a lot.
----
not a dumb question at all but a clear indication that you haven't found
samba documentation that is worth following so let me first point out...

http://samba.org/samba/docs/

which I would unhesitatingly declare the best open source documentation
available
see the 'Samba 3 HowTo' and 'Samba by Example'

The issue is that Windows has a lot of pre-conceived notions of users,
groups, ID's and samba tries to accommodate them in ways that seem
confusing to UNIX/Linux users but are pretty obvious to those familiar
with Windows Networking concepts.

The idea is that you 'map' samba groups to Unix groups.

The documentation on the subject begins here...
http://samba.org/samba/docs/man/Samba-HOWTO-Collection/groupmapping.html#id382548

so if all the users were part of the Linux group 'users', you could
conceivably map the 'Samba Domain Group' called "Domain Users" to the
posix group 'users'

net groupmap list

will print a list of current samba groups (no doubt 'unassigned')

Craig

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux