Mac User Group Singapore
09 Sep 10, 1718H *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Calendar Login Register  
Pages: [1] |   Go Down
  Send this topic  |  Print  
Author Topic: su -  (Read 14340 times)
espn
Mac Addict
***

Karma: 0
Offline

Gender: Male
Posts: 488


« on: 12 Jul 05, 1412H »

Anybody can give me any insight why I can't do a 'su -' on my PB?

I wanted to edit the '/etc/xinetd.d/ftp' yet when I open it with VI, I get a 'File is read-only' warning. I had to click here, there, here, then finally get into the GUI and change to allow FTP.

My administrator password won't work. Any ideas?
Logged

Mac Newbie
timgoh0
Global Moderator
Mac Forum Junkie
*****

Karma: -255
Offline

Gender: Male
Posts: 3790


« Reply #1 on: 12 Jul 05, 1826H »

That's because the root account is disabled by default. This is A Good Thing.

Use the
sudo <command>
 command instead.
Logged

\"We know ourselves by the questions we ask and the ones we do not. If we cease asking questions and accept only what we can perceive then we will cease to know ourselves.\"
victorp
Forum Member
Mac Fanatic
****

Karma: 0
Offline

Gender: Male
Posts: 564

I'm a llama!


« Reply #2 on: 12 Jul 05, 2140H »

Actually, you can...try

sudo su -

but of course be careful!
Logged

"Civilizations would take billions of years of tortuous evolution to arise, and then snuff themselves out in an instant of unforgivable neglect." - Dr Carl Sagan
espn
Mac Addict
***

Karma: 0
Offline

Gender: Male
Posts: 488


« Reply #3 on: 12 Jul 05, 2155H »

Oh, the root account is disabled, didn't know that, thought the installation discs locked up the account with a password only apple engineers know.

Thanks for the heads up. I'm too used to running as root on my unix systems that I feel kinda disabled when I can't do that on my PB  Lips Sealed
Logged

Mac Newbie
timgoh0
Global Moderator
Mac Forum Junkie
*****

Karma: -255
Offline

Gender: Male
Posts: 3790


« Reply #4 on: 13 Jul 05, 0628H »

You CAN enable the root account via netinfo manager, but this is not recommended as it creates an account in which anyone can log in to gain superuser privileges.
Logged

\"We know ourselves by the questions we ask and the ones we do not. If we cease asking questions and accept only what we can perceive then we will cease to know ourselves.\"
espn
Mac Addict
***

Karma: 0
Offline

Gender: Male
Posts: 488


« Reply #5 on: 13 Jul 05, 1005H »

Yeah I know your concerns, now battling with myself to see to use root at all or just carry on as per normal.

Thanks for the heads up Wink
Logged

Mac Newbie
carrot^
Forum Member
Mac_Newbie
*

Karma: 0
Offline

Gender: Male
Posts: 73


I'm a llama!


« Reply #6 on: 24 Aug 05, 1006H »

or you can do a sudo passwd root and change the password and then do a su root.
Logged
sao
Moderator
Mac Addict
*****

Karma: 0
Offline

Gender: Male
Posts: 279



WWW
« Reply #7 on: 24 Aug 05, 2333H »

.

I really see no need to 'su' to 'root'. By the way, using passwd to change the password doesn't affect NetInfo database. To change the root password, you need to use NetInfo Manager. Anyhow, when logged in as an admin user and 'root' access is needed, it's always better to use 'sudo'. And if you need to extend root access, you could always start a new shell with 'sudo -s'.

.
Logged
pccmaster
Mac_Newbie
*

Karma: 0
Offline

Gender: Male
Posts: 7


Personal Computer Crashing Master :)


« Reply #8 on: 09 Nov 07, 2342H »

That's because the root account is disabled by default. This is A Good Thing.

Use the
sudo <command>
 command instead.
This is true. A common horror story of "su -" or "sudo -s" is accidentally executing "rm -rf /" as a superuser instead of "rm -rf /the/folder/I/wanna/delete". If it was a normal user, the damage is controlled.
Logged

~~~PC keeps crashing~~~
Personal Computer Crashing Master
Pages: [1] |   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!