[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] More 'ownership' things :-(
On Wed, Jun 18, 2003 at 08:20:23PM +0100, Ruth Gunstone wrote:
> Hi Guys,
Hi there Ruth,
> I want to set the permissions for a folder, within a website I'm
> developing,
> to rwxrwxrwx (777?). My system won't let me - even when I change to
> superuser. I /think/ it's because the folder, while owned by 'ruth',
> is in
> the 'root' group (no, I don't know why!).
As root, what error comes up when you type:
# chmod 777 website
?
> When I do 'chgrp ruth websites', I get 'Operation not permitted'.
Have a look at /etc/group
Is the group ruth in there?
If not, you'll have to do (as root)
# groupadd ruth
> Can anyone tell me why please?..and how to change the group?
It is, indeed, with chgrp.
However, you can also do:
$ chown user:group file
> I've noticed that any new folder created on the partition is in group
> 'root'.
This also points to the user ruth having a group of root. As ruth:
$ groups
This should tell you what groups you are in.
HTH,
Neil
--
A. Because it breaks the logical sequence of discussion
Q. Why is top posting bad?
gpg key - http://www.halon.org.uk/pubkey.txt ; the.earth.li 8DEC67C5
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.