Samba and Read Only documents

Joel Goguen jtgoguen at gmail.com
Tue Jan 13 15:29:01 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Cameron wrote:
> Hi again. I tried the second option you gave me but i get an error
> message saying "invalid Group". Here's what I've done in the terminal so
> far:
> 
> administrator at administrator-desktop:~$ sudo /etc/init.d/samba stop *
> Stopping Samba daemons
> [ OK ] 
> administrator at administrator-desktop:~$ sudo
> gedit /etc/samba/smb.confadministrator at administrator-desktop:~$ sudo
> chmod -R o-rwx /home/administrator/SharedFiles
> administrator at administrator-desktop:~$ sudo chgrp -R
> sambausers  /home/administrator/SharedFiles
> chgrp: invalid group: `sambausers'
> administrator at administrator-desktop:~$ sudo chgrp -R
> AE  /home/administrator/SharedFiles
> chgrp: invalid group: `AE'
> administrator at administrator-desktop:~$ 
> 
> On Tue, 2009-01-13 at 09:58 -0400, Joel Goguen wrote:
>> sudo chgrp -R sambausers 
> 
You need to create the group first.  From the directions I gave:

If you would rather go this route, create a new group (I'll pretend it's
called 'sambausers' for now) and add everyone who should be able to
access the share into that group.

If you don't create the group, you'll get that error.  If you don't add
all the users to the group, you'll get permission denied errors when
they try to access it.

Create the group: sudo groupadd sambausers
Add users to the group: sudo useradd -G sambausers <username>

- --
Joel Goguen
Ubuntu User #15951
When we help, we benefit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklssz0ACgkQ7B2nva3BBnjhswCg91ytW8KkG1H817rOqfMSH60s
8/oAoPeSVYu11olrQFLBDGPQ738+zt3y
=LqW9
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list