LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-24-2006, 07:14 AM   #1
anjanesh
Member
 
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Rep: Reputation: 30
Accounts


Hi

Logged in as root, how can I know what are the other accounts that exists on the server and if they have root access or not ?

Thanks
 
Old 05-24-2006, 08:13 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are you in the console?
One thing you can do is cat out the /etc/passwd file. Regular users use a different UID range then system users.
A user might not have a home directory. This is the case where a user has group access, or is a samba user, or has their home directory located on a network share.

If you print out the /etc/group file, look for user names at the end of the root and wheel root:x:0:
wheel:x:10:jschiwal

Often, members of the wheel group are allowed to use "sudo". You can run "visudo" to examine the sudo file.
Code:
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL
If this line or the one below it is uncommented, then all "wheel" group members can run sudo. It is possible that sudo is setup so that wheel members enter their own password. This makes it possible to restrict the commands wheel members can execute, and keep the root password a secret. Read the "man sudoers" man page for more details.
If you google for "sudoers security" you may find web pages on how to secure sudo access.
It can get a bit complicated, because some common programs have shell escapes. This would allow them to execute commands as root without being logged. Unfortunately, one of these programs is "vim". Entering ":!/bin/bash" might allow wheel members to start a new shell. I'd need to read up on vim to find if ":!" can be disabled.

You may want to get in the habit of logging in as yourself and su'ing to root or using sudo, if this is a server on a network with multiple users, consider disabling root login.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba accounts/ unix accounts Buzz88 Linux - Newbie 3 09-25-2005 08:16 AM
qmail -- new accounts can't receive mail, but old accounts can b:z *BSD 1 07-13-2005 12:42 AM
VIrtual accounts nderitualex Linux - Newbie 1 03-21-2005 03:39 AM
Accounts bhughesiii Linux - General 2 09-16-2004 01:54 PM
Managing accounts pk21 Linux - Software 0 08-09-2003 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:25 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