LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-11-2008, 06:16 PM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
A problem with su on OpenSolaris 2008.05


Hi guys.

I created an user for myself and gave it the Primary Administrator role. To my surprise, the user created by the installer can su to root, but my user cannot and the error is:
Quote:
bash-3.2$ su -
Password:
Roles can only be assumed by authorized users
su: Sorry
I usually pfexec bash when I have to do long task with root privileges but would like to know how I should configure the roles so that my user could su. I reviewd the roles given to the two users and they appear to be the same, so I cannot explain this discrepancy an man su gave me no hint.

Thanks,
Enrico.
 
Old 05-12-2008, 12:13 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Generally, to be able to su one has to be in the wheel group.
 
Old 05-12-2008, 02:53 PM   #3
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Thanks Emerson.

By the way, adding my user to the wheel group didn't change this behavior.

I also discovered that the user created by the installer has the role "root" whereas mine has not. I should read more about RBAC because I feel I'm missing many points. In my previous SXDE installation, by the way, the user was created the same way (with the same script) and it did su to root, so something must have changed between SXDE and OpenSolaris 2008.05. I feel like reading the SXDE docs and OpenSolaris docs to track the differences down but now I'm short of time for such task...
 
Old 05-12-2008, 04:14 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by crisostomo_enrico View Post
so something must have changed between SXDE and OpenSolaris 2008.05
There are a lot of difference between these distributions. That one you just hit is Solaris Express preserves the traditional root user account while OpenSolaris/Indiana is replacing it by a role, ie an account you can't log in to. Belenix is doing the same, Ubuntu is doing something closer based on sudo.

Instead of "su -" which won't work as you noticed, you should use "pfexec su".

If for some reason you want to revert to root as a regular account, just remove "type=role;" in the root entry of the /etc/user_attr file.
 
Old 05-13-2008, 04:50 AM   #5
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Thank you very much jlliagre!

With your input I immediately found the relevant documentation.

Bye,
Enrico.
 
  


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
LXer: Install OpenSolaris 2008/05 DomU at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit) LXer Syndicated Linux News 0 05-08-2008 03:20 PM
OpenSolaris 2008.05 Installation Help harley51 Solaris / OpenSolaris 11 05-08-2008 03:06 PM
LXer: Sun launches OpenSolaris "2008.05" under CDDL LXer Syndicated Linux News 0 05-05-2008 09:42 PM
LXer: DistroWatch Weekly: Look at Linux 12.1, openSUSE 11.0 updates, OpenSolaris 2008 LXer Syndicated Linux News 0 05-05-2008 06:00 AM
LXer: OpenSolaris 2008.05 Gives A New Face To Solaris LXer Syndicated Linux News 0 04-25-2008 09:50 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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