Samba and Read Only documents

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

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
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


More information about the ubuntu-users mailing list