[CLUE-Tech] groups
Mike Staver
staver at fimble.com
Tue Apr 30 16:22:52 MDT 2002
Ok, so let me see if I have this correct - in /etc/passwd, is the second
column of numbers the group id? If so, I just need to create a group in
/etc/group, assign it a number that's not already being used, and then
I'm ok. My only question remains then - how do I give ownership of a
file or directory to a group and not an individual? I have used the
following command on a directory:
chgrp ftpguys /home/ftp_files
so, an ls -l shows:
drwxr-xr-x 2 staver ftpguys 4096 Apr 30 2002 ftp_files
Then, in /etc/group I have:
ftpguys:x:512:cguest,chris,boz
Then, in /etc/passwd I have:
cguest:x:507:512::/home/files/./Castle_Productions:/etc/ftponly
chris:x:508:512::/home/files/./Castle_Productions:/etc/ftponly
boz:x:509:512::/home/files/./Castle_Productions:/etc/ftponly
Yet, when I ftp in as one of these accounts, I don't have read/write
permissions in the directory I want. Am I missing something?
David Jackson wrote:
>Mike --
>man groupadd
>man useradd
>man adduser
>man chown
>man chgrp
>
>Group info is kept in /etc/groups
>A some of systems created a group for each user, added secruity
>by default a file is created with the username and primary/default
>group i.e. I create a file ls -l would show this:
>
>-rw-r--r-- 1 davej davej 36 Apr 26 09:11 count.awk
>
>If you install software from source it my require you to create a user and
>group just for it, and tell you what group perms to apply MySQL for intance:
>
>shell> ./configure --prefix=/usr/local/mysql
> shell> make
> shell> make install
> shell> scripts/mysql_install_db
> shell> chown -R root /usr/local/mysql
> shell> chown -R mysql /usr/local/mysql/var
> shell> chgrp -R mysql /usr/local/mysql
> shell> cp support-files/my-medium.cnf /etc/my.cnf
> shell> /usr/local/mysql/bin/safe_mysqld --user=mysql &
>
>
>Some systems have files in /bin,/sbin owned by root:bin others
>root:root
>
>HTH,
>David
>
>
>
>>Hello, can someone tell me how to create, modify, and just basically
>>manage groups without using xwindows? I have the boxed set of Red Hat
>>7.1, and their books only explain how to do it with X.
>>
>>--
>>
>> -Mike Staver
>> staver at fimble.com
>> mstaver at globaltaxnetwork.com
>>
>>
>>_______________________________________________
>>CLUE-Tech mailing list
>>CLUE-Tech at clue.denver.co.us
>>http://clue.denver.co.us/mailman/listinfo/clue-tech
>>
>>
>
>
>
>
--
-Mike Staver
staver at fimble.com
mstaver at globaltaxnetwork.com
More information about the clue-tech
mailing list