LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-26-2005, 03:17 PM   #1
nicolas9510
LQ Newbie
 
Registered: Mar 2004
Posts: 19

Rep: Reputation: 0
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
 
Old 01-26-2005, 03:19 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Make sure that you are root and that /sbin is in your path or try:
/sbin/adduser username
 
Old 01-26-2005, 03:24 PM   #3
nicolas9510
LQ Newbie
 
Registered: Mar 2004
Posts: 19

Original Poster
Rep: Reputation: 0
bash: /sbin/adduser : no such file or directory
i looked in /sbin there is no adduser or useradd
 
Old 01-26-2005, 03:29 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Sorry, my mistake - I think it is:
/usr/sbin/adduser
 
Old 01-26-2005, 03:42 PM   #5
nicolas9510
LQ Newbie
 
Registered: Mar 2004
Posts: 19

Original Poster
Rep: Reputation: 0
ok this works
but is there anyway i can get it so that i just have to type:
adduser
?
 
Old 01-27-2005, 01:53 AM   #6
FarAway
LQ Newbie
 
Registered: Jul 2004
Posts: 18

Rep: Reputation: 0
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

Last edited by FarAway; 01-27-2005 at 01:59 AM.
 
Old 01-27-2005, 06:35 AM   #7
nicolas9510
LQ Newbie
 
Registered: Mar 2004
Posts: 19

Original Poster
Rep: Reputation: 0
ok thanks
is there a command to update things that we changed?
so it takes count of what you changed?
 
Old 01-27-2005, 02:03 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
 
Old 01-27-2005, 04:13 PM   #9
nicolas9510
LQ Newbie
 
Registered: Mar 2004
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 01-27-2005, 04:18 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding user hoopy Linux - General 3 09-13-2005 09:38 PM
adding a new user Cinematography MEPIS 5 07-25-2005 09:19 PM
Adding User? cry0x Linux - Software 5 02-27-2005 04:15 PM
Adding user desbyleo Linux - Newbie 3 02-18-2002 07:15 PM
user adding sathu Linux - Newbie 1 02-12-2002 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration