LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 01:55 PM   #1
Harry_Linux008
LQ Newbie
 
Registered: Aug 2010
Posts: 7

Rep: Reputation: 0
How to add a role and profile to new user in LINUX


Dear Experts,


How to add a new role and profile for new user by using the command "useradd" in linux.

In solaris there is an options(useradd -R and useradd -P) for these actions, like this how to add role and profile for new user in linux.

Please give me your valuable points.

Thanks in advance.
 
Old 09-03-2010, 01:58 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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

The useradd command also exists on Linux but it's generally used to create users, not modify them. For that in Linux you can use the usermod command. Have a look at the man pages of both to find the possible attributes to them. In a terminal type:
Code:
man useradd
man usermod
Hope that helps.

Kind regards,

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

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

The useradd command also exists on Linux but it's generally used to create users, not modify them. For that in Linux you can use the usermod command. Have a look at the man pages of both to find the possible attributes to them. In a terminal type:
Code:
man useradd
man usermod
Hope that helps.

Kind regards,

Eric

Hi Eric Thanks, and sorry my question may be very stupid and basic.

My doubt is...
In solaris "useradd -R" will add a new role to the user and "useradd -P" will add a new profile to the user. But in linux these options are not availabe, so how to achieve these options in LINUX.

Thanks,
Harry.
 
Old 09-03-2010, 02:23 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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

You're welcome and there are no stupid questions in my opinion, so don't worry about a thing.

As stated in my answer to your other thread, I'm not aware of a 'role' being used in Linux, at least not within a standard Linux system. I've read (Google) that role based access control is something that can be used for example in SELinux or in other distros like Gentoo using Grsecurity but I'm not familiar with either of them. Standard Linux doesn't use the role based access/authentication control so I'm afraid that unless your software works with things as SELinux, you'll have to work with an alternative to the role based system like group based for example, or sudo.

As you stated; the options -R and -P are not available in the useradd command, at least not in the version I have running with Slackware 13.1.

Kind regards,

Eric

Last edited by EricTRA; 09-03-2010 at 02:25 PM.
 
  


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
Add new role to Tomcat Srikanth VM Programming 3 03-01-2010 06:35 AM
RBAC role with Ldap user LinuxLover Solaris / OpenSolaris 5 12-15-2009 02:59 PM
Linux User Profile... sakthi_sarathi Linux - Newbie 2 02-16-2008 09:34 PM
How do I create a default user profile in Linux Sm1ler Linux - General 2 07-01-2004 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 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
Open Source Consulting | Domain Registration