- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- user creation in RHEL
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2010 02:05 PM
тАО04-12-2010 02:05 PM
user creation in RHEL
Pls help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2010 09:11 PM
тАО04-12-2010 09:11 PM
Re: user creation in RHEL
create the user as root
useradd -d /home/user user
then as root run:
visudo or vi /etc/sudoers
in the file you will see
root ALL=(ALL) ALL
add a line below that line that has
user ALL=(ALL) ALL
* replace "user" with the username you want.
then when you want to do some admin level work you would just use sudo before the command.
another solution is if you know the root pass, you could use su - or su -c "command for execute "
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2010 09:33 PM
тАО04-12-2010 09:33 PM
Re: user creation in RHEL
in second case as described install/configure sudo or install some 3rd party software like powerbroker.
If for smtime and you can put its user id as 0 in etc/passwd, and it would do everything a root can do.
lil scary though ;)
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 12:38 AM
тАО04-13-2010 12:38 AM
Re: user creation in RHEL
useradd -o -u 0 -g 0 newname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 05:54 AM
тАО04-13-2010 05:54 AM
Re: user creation in RHEL
the passwd file acts as a lookup table.. any entries or files for "joe" with uid of zero will show up as root.
This only confuses things more. have one root and only one ... "one ring to control them all"
sudo is the way to go if you are looking for autditing and accountability
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 02:47 AM
тАО04-14-2010 02:47 AM
Re: user creation in RHEL
best way is to give it thru sudo; dont make the id as 0.
Cheers
Vipul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2010 11:14 PM
тАО04-18-2010 11:14 PM
Re: user creation in RHEL
Creating another root user can be a security risk. Root has a UID of zero in /etc/passwd. This means absolute control over the system for the root user. You can set any user id to 0 (zero) to grant unlimited permissions provided that you login as root.
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 05:23 AM
тАО04-19-2010 05:23 AM
Re: user creation in RHEL
vi /etc/passwd
"replace the user's u ID by 0"
Example
*Here xyz is the username
xyz:!:1234:71022::/home/xyz:/usr/bin/ksh
xyz:!:0:71022::/home/xyz:/usr/bin/ksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2010 08:03 AM
тАО04-19-2010 08:03 AM
Re: user creation in RHEL
That comcept is exactly what we're trying to advise smkhairnar NOT do.
Multiple UID 0 accounts are a terrible security and stability risk. At the very least, it provides hackers with extra opportunities to guess a root-level password.
It would be a lesser evil for multiple SysAdmins to share a single common root password than to have multiple root-level (UID 0) accounts.
Also, some programs lookup a login name using the UID. Non-unique UIDs will likely confuse those programs, e.g. may return first/random/incorrect username.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2010 01:59 PM
тАО04-20-2010 01:59 PM
Re: user creation in RHEL
useradd -o -u 0 -d /home/samy/ samy