|
|
problem with "su" in terminal
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Da Big Apple, USA
Status:
Offline
|
|
Maybe someone can help me. I'm using the "su" command in the Terminal to get a password prompt. I get the prompt, but when I enter my password, I get a message saying "Sorry," so I guess I'm being blocked out. There's no other user user account but mine, so I know it's not an issue of who's logged in and who isn't. Does anyone know what's going on?
Thanks in advance...da CuZ
|
-cuzin
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Apr 2001
Status:
Offline
|
|
Yes. The root account is disabled by default (and should stay that way).
To do a command as root, do "sudo <command>"
and if you want a root prompt, do "sudo -s".
when prompted for a password, put in the password for the admin account.
Wade
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2001
Location: Earth
Status:
Offline
|
|
su = substitute user (root by default). 'su' allows you to log in as root, the prompted password is your root password, if you haven't set any, it'll never work. You should search the fora, you'll find more info on 'su' and 'sudo'.
------------------
"Sing you fools ! But you got it wrong..."
[This message has been edited by Lord Kronos (edited 05-28-2001).]
|
"Sing you fools ! But you got it wrong..."
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Da Big Apple, USA
Status:
Offline
|
|
worked like a charm guys..thanks to both of you for.your help
|
-cuzin
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Da Big Apple, USA
Status:
Offline
|
|
so if i login using sudo -s, I'm the root account? 'cause that's ehat I did
|
-cuzin
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Apr 2001
Status:
Offline
|
|
so if i login using sudo -s, I'm the root account? 'cause that's ehat I did
Well, not login, no. But if you do "sudo -s" from a terminal window and enter your admin password, you'll be root. (And I think that's what you were saying).
Wade
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Da Big Apple, USA
Status:
Offline
|
|
|
-cuzin
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2001
Location: Earth
Status:
Offline
|
|
You don't need to log in as root, this is what 'sudo' is for. 'sudo' is a way to get root privileges without having to actually log in as root.
------------------
"Sing you fools ! But you got it wrong..."
|
"Sing you fools ! But you got it wrong..."
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Da Big Apple, USA
Status:
Offline
|
|
Buy everytime I type sudo -n or sudo -p, nothing happens.
|
-cuzin
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2001
Location: Earth
Status:
Offline
|
|
What would you like to do as root ?
------------------
"Sing you fools ! But you got it wrong..."
|
"Sing you fools ! But you got it wrong..."
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Da Big Apple, USA
Status:
Offline
|
|
login. what i'm trying to do is put the BitchX.app in the usr/local/bin file.
|
-cuzin
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2001
Location: Earth
Status:
Offline
|
|
Try this then:
'sudo mv your_files usr/local/bin'.
------------------
"Sing you fools ! But you got it wrong..."
|
"Sing you fools ! But you got it wrong..."
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Da Big Apple, USA
Status:
Offline
|
|
that works...thanks, Kronos.
As a test, after I installed it, I logged into usr/local/bin as root, then I used rm -R to delete the BitchX file. Just to see the difference...
I see why logging in as root is dangerous...it's possible to delete the lower-tier UNIX files. That's why I was denied direct access to /bin, as a safeguard so I don't screw stuff up. Am I right?
And again, thanks Kronos.
|
-cuzin
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2001
Location: Earth
Status:
Offline
|
|
Originally posted by cuz:
[...]
I see why logging in as root is dangerous...it's possible to delete the lower-tier UNIX files. That's why I was denied direct access to /bin, as a safeguard so I don't screw stuff up. Am I right?
[...]
You're absolutely right .
------------------
"Sing you fools ! But you got it wrong..."
|
"Sing you fools ! But you got it wrong..."
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Da Big Apple, USA
Status:
Offline
|
|
You learn somehin' new everyday...
[This message has been edited by cuz (edited 05-28-2001).]
|
-cuzin
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2000
Status:
Offline
|
|
As always read the man page. Read the man page!
>man su
>man sudo
I'm going to move this over to the Mac OS X Usage & Support forum. Click through to find your post.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|