LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2010, 02:46 PM   #1
Harry_Linux008
LQ Newbie
 
Registered: Aug 2010
Posts: 7

Rep: Reputation: 0
Linux equivalent of solaris /etc/user_attr file


Hi All,


I am porting some applications from solaris to linux. For this purpose I need to know the linux equivalent for solaris /etc/user_attr file. From this file (/etc/user_attr) I am collecting all the user names.

Please show me a correct file and solve my problem.

Thanks in advance.
 
Old 09-03-2010, 02:55 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

If you only want to collect the usernames of all users on the system, have a look at /etc/passwd, the username is in the first column and the data are seperated by :

Is that what you're looking for? Hope it helps.

Kind regards,

Eric
 
Old 09-03-2010, 03:04 PM   #3
Harry_Linux008
LQ Newbie
 
Registered: Aug 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
Hi,

If you only want to collect the usernames of all users on the system, have a look at /etc/passwd, the username is in the first column and the data are seperated by :

Is that what you're looking for? Hope it helps.

Kind regards,

Eric

Thanks for your reply,

But my requirement is different. For my applications purpose I need to check user names and UID from below solaris files
/etc/passwd
/etc/shadow
/etc/user_attr

from these files I need to get user name, UID and role.

In linux we have /etc/passwd and /etc/shadow but I don't know where is /etc/user_attr. What is the equivalent of this file.


Thanks.
 
Old 09-03-2010, 03:17 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

I'm walking on unknown ground here but AFAIK there is no role based authentication or access control in Linux with a standard installation. Maybe some distros include it like with SELinux but I'm not sure of that. I'm sure someone who's more familiar with this issue will kick in pretty soon. Both username and UID can be found in the passwd file on Linux but for the role I don't know where to look on a standard Linux system since it's not used in my opinion.

Sorry I couldn't help more.

Kind regards,

Eric
 
Old 09-07-2010, 08:55 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,652

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
What is used with Gnu/Linux distributions to provide something (more or less) close to Solaris RBAC is sudo.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
solaris equivalent of /etc/networks in linux? cghcgh Linux - Networking 5 03-28-2008 05:56 PM
nohup -p in solaris and equivalent in linux prakash_k Linux - General 4 01-09-2006 12:21 AM
Solaris volcheck equivalent in Linux Dopey Linux - Newbie 1 04-13-2005 05:47 AM
Is there a linux equivalent of dumpadm on Solaris? jdc2048 Red Hat 2 12-09-2003 03:06 PM
Is there an equivalent of core [in solaris] in linux vsg123 Linux - Software 1 07-21-2003 10:55 AM


All times are GMT -5. The time now is 06:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration