nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

AIX /etc/security/user like file for Linux

This is a discussion on AIX /etc/security/user like file for Linux within the Getting started tutorials forums, part of the Linux Getting Started category; I'm a newbie in Linux. I understand that Linux and AIX has some similarity. However i tried to search whether ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-30-2007, 08:42 AM
Junior Member
User
 
Join Date: May 2007
My distro: Debian
Posts: 2
Rep Power: 0
ftengcheng is on a distinguished road
Default AIX /etc/security/user like file for Linux

I'm a newbie in Linux. I understand that Linux and AIX has some similarity. However i tried to search whether there is a file system of /etc/security/user (like in AIX). In this file, i can see all the attribute of each individual users in the system. Is there somthing similar in Linux? I want to see whether the user is an admin (or having admin rite.

Please advise.

Thanks.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-30-2007, 01:09 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 917
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
Originally Posted by ftengcheng View Post
I'm a newbie in Linux. I understand that Linux and AIX has some similarity. However i tried to search whether there is a file system of /etc/security/user (like in AIX). In this file, i can see all the attribute of each individual users in the system. Is there somthing similar in Linux? I want to see whether the user is an admin (or having admin rite.

Please advise.

Thanks.
There is no such file which defines extended user attributes such as su , account_locked and so on. However there are other files and ways to accomplish some of the security issues. Basically the /etc/security/user is bit outdated and Linux use PAM based security mechanism. Can you tell me what you are trying to do? On a related note look at /etc/security directory it has some of the functionalities provided by the AIX user file in different files such as
access.conf : Use login access permissions
group.conf : Group related permissions
limits.conf : Put resources limitations
pam_env.conf : setup session management PAM variables
time.conf : Specifies the times, days, or both, the user is allowed to access the system.
/etc/pam.conf and /etc/pam.d/* PAM configs
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 05-30-2007, 01:20 PM
Junior Member
User
 
Join Date: May 2007
My distro: Debian
Posts: 2
Rep Power: 0
ftengcheng is on a distinguished road
Default

Thanks Vivek,

We are looking at Segregation of Duties (checking whether developers are in the production environment). I want to see whether the users in the systems are having administrator's rights. From what i understand, the /etc/security/user can show me whether they are having that rights or not. This /etc/security/user also includes other attributes like the password information. So i'm just wondering whether these information can be extracted/captured in Linux. If yes, where can i get them?

I hope you understand.

By the way, what is PAM?

Thanks.

Regards,
Teng Cheng
Reply With Quote
  #4 (permalink)  
Old 05-30-2007, 01:35 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 917
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
want to see whether the users in the systems are having administrator's rights.
All administrator's rights and to grant rights to other you need to use sudo under Linux. Login as root and enter:
Code:
vi /etc/sudoers
OR type
Code:
visudo
Here is my own file:

Code:
# User privilege specification
root    ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# WWW-data can run any command w/o a password
www-data ALL= NOPASSWD: ALL
Read the man page for sudo or just get some basic idea here: Allow a normal user to run commands as root | nixCraft

Quote:
By the way, what is PAM?
Pluggable authentication modules or PAM are a mechanism to integrate multiple low-level authentication schemes into a high-level API, which allows for programs that rely on authentication to be written independently of the underlying authentication scheme. PAM was first proposed by Sun Microsystems in an OSF-RFC dated October, 1995. It was adopted at the authentication framework of the Common Desktop Environment. As a stand-alone infrastructure, however, PAM first appeared from an open-source, Linux-PAM, development in Red Hat Linux 3.0.4 in August of 1996. PAM is currently supported in AIX, FreeBSD, HP-UX, Linux, Mac OS X, NetBSD and Solaris. With PAM you can do advanced security settings such as
=> Restrict the use of su command
=> Prevent from using or reuse same old passwords under Linux
=> OpenSSH Root user account restriction
=> Allow user to login via ftp but not via ssh/telnet and much more
In short read PAM ADMIN Guide and other docs ==> The Linux-PAM Administration and Developer Guides

Hope this helps!
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 03-25-2008, 01:28 AM
Member
User
 
Join Date: Mar 2008
My distro: Debian, Slackware, LFS
Posts: 83
Rep Power: 1
Tux-Idiot is on a distinguished road
Talking

gid 0 normally means in admin group or in wheel or in root group and yes they have admin rights. check in /etc/groups and vigr to change. PAM is messy and PAM is also compatible with trusted bsd. good luck. trusted bsd is like PAM somewhat, IMO. please do run chkrootkit and rkhunter and also run audit on users and utmp wtmp as much as you can. else livecd!

aite! too much posting making my fingers pain. time to hit the sack. later!
p.s. this forum is techie hardcore and i never knew indian forums also could be techie. everytime i went like a virtual vanity insanity gaga limitless absurdity plus clueless forums in the net. three cheers to this forum.

this geek is also a DJ! he is a DJ and he is a geek! so dont consider me just a geeky book worm! i do skid and scratch in real parties! :-p geeky part is which help me fetch bread.

the difference between virtual and reality is same as mermaid is to walrus.
play on playah!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Apply CentOS Linux package security updates from the Internet raj CentOS / RHEL / Fedora 0 04-22-2008 01:53 AM
Alphabetical file name and list logged in user script oronno Shell scripting 5 08-22-2007 12:10 PM
can not find user name in /etc/passwd file subrata1in Linux software 2 03-26-2007 10:44 AM
Which Linux network services pose a security threat? chimu Linux software 2 07-20-2006 06:59 PM


All times are GMT +5.5. The time now is 04:38 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36