Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > root user

 
root user
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2002
Status: Offline
Apr 27, 2002, 02:35 AM
 
This is probably a stupid question but.. I just installed OS X server and have updated to 10.1.4. Everything is running fine no problems.

I however have some software that needs to be installed from the terminal. But when I try to run it it tells me that it needs to be run by the 'superuser'.

How do I envoke the super user? is it different than in OS X? I have tried serveral ways to do it but I cannot figure it out.

----------------
login: setgroups: Operation not permitted
Welcome to Darwin!
[localhost:~] kcharity% login
login: root
Password:
root login refused on this terminal.
login:

---------------------
thanks in advance

[ 04-27-2002: Message edited by: kencharity ]
     
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Apr 27, 2002, 03:12 AM
 
Originally posted by kencharity:
<STRONG>This is probably a stupid question but.. I just installed OS X server and have updated to 10.1.4. Everything is running fine no problems.

login: setgroups: Operation not permitted
Welcome to Darwin!
[localhost:~] kcharity% login
login: root
Password:
root login refused on this terminal.
login:</STRONG>
I don't know about OS X Server but in OS X you can enable the Root in NetInfo Manager with the menu Domain/Security, you first have to autenticate.

A better way is to give yourself temporary superuser priviledge, in Terminal type either :
sudo (then a command)
or even better yet
sudo -s (then a command)

sudo -s gives you a superuser until you type exit to close the superuser session.

Hope it helps

[ 04-27-2002: Message edited by: Kenny ]
     
Mac Elite
Join Date: Aug 2001
Location: Australia
Status: Offline
Apr 27, 2002, 04:04 AM
 
Or even better, type su and then your password in your terminal.

You can also get root access on the terminal by login in as root if you enable other at login.
     
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Apr 27, 2002, 11:44 AM
 
Originally posted by IUJHJSDHE:
<STRONG>Or even better, type su and then your password in your terminal.

You can also get root access on the terminal by login in as root if you enable other at login.</STRONG>
For that you have to enable the root user witch could be a security risk if your computer as an always on connection to the internet.

sudo -s does the exact same thing without enabling the root.

It’s a tips I fond in Macworld, Total OS X, along with many other.
     
Fresh-Faced Recruit
Join Date: Apr 2002
Status: Offline
Apr 27, 2002, 12:13 PM
 
I have tried all of these but here is what get in the terminal...

login: setgroups: Operation not permitted
Welcome to Darwin!
[localhost:~] kcharity% sudo -s
Sorry, sudo must be setuid root.
[localhost:~] kcharity% sudo ./vpn client
Sorry, sudo must be setuid root.
[localhost:~] kcharity% su
su: setgroups: Operation not permitted
Password:
su: setgid: Operation not permitted
[localhost:~] kcharity%

Any other sugestions?

thanks

Ken
     
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Apr 27, 2002, 07:53 PM
 
Originally posted by kencharity:
<STRONG>Any other sugestions?

thanks

Ken</STRONG>
Beats me

Are you admin on your machine ?
The code seems to be different on the server version, you can look in Apple support page, maybe there is something there.
     
Mac Elite
Join Date: Sep 2000
Location: Canada
Status: Offline
Apr 27, 2002, 10:28 PM
 
Ken, if memory serves me correctly, the user you're logged in as is not an admin, and thus cannot gain superuser privileges. That's what the "login: setgroups: Operation not permitted" error is when you first open Terminal. This problem has come up before. I think you'll have to search the OS X - General Discussion forum for the solution.
     
Fresh-Faced Recruit
Join Date: Apr 2002
Status: Offline
Apr 28, 2002, 04:21 AM
 
Well to my knowledge am the only user and in users and groups it tells me I am the system Admin....

As a fluke I logged out and did the following at login...

login name = root
password = same as normal login

This acutally worked, it logged me in and the terminal now read...

Welcome to Darwin!
[localhost:~] root%

--------------------------------

thus the sudo commands worked and with some trial and error i was able to get the software to install.

So I guess that is how it is done?

thanks for al who helped.

Ken
     
Mac Elite
Join Date: Sep 2000
Location: Canada
Status: Offline
Apr 28, 2002, 05:59 AM
 
Originally posted by kencharity:
<STRONG>So I guess that is how it is done?</STRONG>
No, that is not how it is done. Something is wrong with your system. Unfortunately, after searching every OS X open and archived forum, I couldn't find a definite solution to your problem.
     
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Apr 28, 2002, 10:53 AM
 
Originally posted by kencharity:
<STRONG>login name = root
This acutally worked, it logged me in and the terminal now read...

So I guess that is how it is done?</STRONG>
You can log out and log back in as root but you should be able to do it even as another user as long as that user is Admin.

I would check your System Preferences/Users to see if the user is admin, if not create a new user and give im the admin priviledge so you can use the Terminal as root with the su/sudo command.
     
Mac Elite
Join Date: Aug 2001
Location: Australia
Status: Offline
May 5, 2002, 10:38 PM
 
Originally posted by kencharity:
<STRONG>Well to my knowledge am the only user and in users and groups it tells me I am the system Admin....

As a fluke I logged out and did the following at login...

login name = root
password = same as normal login

This acutally worked, it logged me in and the terminal now read...

Welcome to Darwin!
[localhost:~] root%

--------------------------------

thus the sudo commands worked and with some trial and error i was able to get the software to install.

So I guess that is how it is done?

thanks for al who helped.

Ken</STRONG>
As I know root should look like this...
[localhost:~] root#
not
[localhost:~] root%
     
 
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:58 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2