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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux