How to create a new group?
I want to know how to create a new group under the shell by command and in code using system calls. Can anyone help?
|
You can use "groupadd".
|
Is there a shell command to do the same task?
|
That is a shell command.
|
I see. I do not have /usr/sbin in my path. Is that normal?
|
/usr/sbin is normally only in root's path. be sure you are getting to root using su - and then run groupadd as root.
|
That's strange. If I su into root using a shell when in a normal user account, /usr/sbin is not in path. It seems /etc/profile does not get parsed in this way. If I logon using the graphical UI, then I have /usr/sbin in my path.
|
Make sure you use "su -" and not just "su". This will load /root/.bash_profile etc.
|
How did you know that?
|
man su
Code:
DESCRIPTION |
Great. I never noticed that small hyphen. Thanks.
|
All times are GMT -5. The time now is 12:55 PM. |