image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old July 23rd, 2004, 05:03 PM
StarBuck's Avatar
Tech
 
Join Date: Sep 2000
Location: United Kingdom
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
StarBuck is on a distinguished road
Switching between users in the Terminal?

Hi I'm trying to switch to the cyrus user in the terminal but when I type in
login it ask for a password for the cyrus user.

It wont except my admin password.

I need to change to the cyrus user in the terminal to repair a mail server problem, any ideas anyone?

Ta

Last edited by StarBuck; July 23rd, 2004 at 05:14 PM.
Reply With Quote
  #2  
Old July 24th, 2004, 07:34 AM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 7,742
Thanks: 20
Thanked 100 Times in 84 Posts
nixgeek has a spectacular aura aboutnixgeek has a spectacular aura aboutnixgeek has a spectacular aura about
If you do a "su cyrus", you have to supply the password for the user you want to "su" as (in this case, "cyrus").
__________________
Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11
Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
Apple PowerBook Duo 230 (33 MHz MC68030) - System 7.1
"JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 12.1
"Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 8.04
Reply With Quote
  #3  
Old July 24th, 2004, 07:48 AM
StarBuck's Avatar
Tech
 
Join Date: Sep 2000
Location: United Kingdom
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
StarBuck is on a distinguished road
If I type su cyrus it ask for my password it won't except my admin password, I have also tried typing cyrus for the password.
Reply With Quote
  #4  
Old July 24th, 2004, 07:57 AM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 7,742
Thanks: 20
Thanked 100 Times in 84 Posts
nixgeek has a spectacular aura aboutnixgeek has a spectacular aura aboutnixgeek has a spectacular aura about
Do you know the password for cyrus? If not, just reset it.

I hope you didn't think I meant to type "cyrus" as the password. Type the password for the user "cyrus" after you type "su cyrus". Remember that when you use "su" to become another user, it's as if you login as that particular user, so you have to supply the password for whatever user you are "su"-ing as at the "Password:" prompt.
__________________
Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11
Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
Apple PowerBook Duo 230 (33 MHz MC68030) - System 7.1
"JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 12.1
"Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 8.04
Reply With Quote
  #5  
Old July 24th, 2004, 10:14 AM
StarBuck's Avatar
Tech
 
Join Date: Sep 2000
Location: United Kingdom
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
StarBuck is on a distinguished road
Quote:
Originally Posted by nixgeek
Do you know the password for cyrus? If not, just reset it.

I hope you didn't think I meant to type "cyrus" as the password. Type the password for the user "cyrus" after you type "su cyrus". Remember that when you use "su" to become another user, it's as if you login as that particular user, so you have to supply the password for whatever user you are "su"-ing as at the "Password:" prompt.
Thanks for replying to my posts first.

What i'm trying to do is switch users in the terminal, but when I do this it asks me for the cyrus password which I don't know.

How can I change the password for cyrus?

su allows you to switch users how is this different to login?

Ta
Reply With Quote
  #6  
Old July 24th, 2004, 11:22 AM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 7,742
Thanks: 20
Thanked 100 Times in 84 Posts
nixgeek has a spectacular aura aboutnixgeek has a spectacular aura aboutnixgeek has a spectacular aura about
You should be able to switch the password for "cyrus" under System Preferences if you select the User Accounts option.

If you want to change the password of "cyrus" from Terminal, you have to type "passwd cyrus" and then you will be prompted for a new password for the user named "cyrus." Of course, the account with which you are logged in should have the sufficient permissions to change the passwords of other user accounts.

As for "su," the reason it's different than a regular login is that it doesn't require you to log out nad log back in as another user. It allows you to become another user temporarily for as long as you need it. It's mostly used when one needs to use the root account momentarily for tasks that require root-level access. Once you are done with the account you "su"-ed to, you can exit by simply typing "exit" and it will bring you back to your user account.
__________________
Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11
Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
Apple PowerBook Duo 230 (33 MHz MC68030) - System 7.1
"JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 12.1
"Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 8.04
Reply With Quote
  #7  
Old July 24th, 2004, 12:39 PM
StarBuck's Avatar
Tech
 
Join Date: Sep 2000
Location: United Kingdom
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
StarBuck is on a distinguished road
Thanks
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:14 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.