LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   adding a user (https://www.linuxquestions.org/questions/red-hat-31/adding-a-user-282573/)

nicolas9510 01-26-2005 03:17 PM

adding a user
 
well i got a RHEL v3 installation
i was wondering what the command was to add a user?
because :
adduser and
useradd dont work
thanks a lot

david_ross 01-26-2005 03:19 PM

Make sure that you are root and that /sbin is in your path or try:
/sbin/adduser username

nicolas9510 01-26-2005 03:24 PM

bash: /sbin/adduser : no such file or directory
i looked in /sbin there is no adduser or useradd

david_ross 01-26-2005 03:29 PM

Sorry, my mistake - I think it is:
/usr/sbin/adduser

nicolas9510 01-26-2005 03:42 PM

ok this works
but is there anyway i can get it so that i just have to type:
adduser
?

FarAway 01-27-2005 01:53 AM

Quote:

Originally posted by nicolas9510
ok this works
but is there anyway i can get it so that i just have to type:
adduser
?


you can add

alias adduser='/usr/sbin/adduser'

to ~/.bash_profile

nicolas9510 01-27-2005 06:35 AM

ok thanks
is there a command to update things that we changed?
so it takes count of what you changed?

david_ross 01-27-2005 02:03 PM

The best thing would just be to add /usr/sbin to your PATH variable. If you su'd to root then try using "su -" instead to load additional paths

nicolas9510 01-27-2005 04:13 PM

ok thanks
another question:
how do u set a limited space for a user via ssh?
like user john get 100Mb of space
bob get 200Mb etc... ?
thanks

david_ross 01-27-2005 04:18 PM

You will need to set up quotas - see:
http://www.tldp.org/HOWTO/Quota.html


All times are GMT -5. The time now is 10:12 AM.