To enable root in terminal, Try "dsenableroot". You wil be prompted for your password and then what you want as root password and then a confirmation of the root password. "dsenablerood -d" disbles the root password
Here is part or the man page.
dsenableroot -- enables or disables the root account.
SYNOPSIS
dsenableroot [-d] [-u username] [-p password] [-r rootPassword]
DESCRIPTION
dsenableroot sets the password for the root account if enabling the root user account. Otherwise, if disable [-d] is chosen, the root account passwords are removed and the root user is disabled.
A list of flags and their descriptions:
-u username
Username of a user that has administrative privileges on this computer.
-p password
Password to use in conjunction with the specified username. If this is not specified, you will be prompted for
entry.
-r rootPassword
Password to be used for the root account. If this is not specified for enabling, you will be prompted for
entry.
There's no reason I'm aware of to enable the root user. If you need to do things as root, simply type sudo -s in the Terminal to start a shell with root access and proceed from there.
or
use sudo su - which makes sure that you keep the same shell settings as you had in you administrator settings
reference: http://hints.macworld.com/article.php?story=20090909081659323
2012年7月4日 星期三
訂閱:
張貼留言 (Atom)
文章分類
- 爬山 (3)
- 參考文章 (3)
- 鳥事 (5)
- 報稅 (1)
- AIX (2)
- ajax (1)
- BCB (3)
- C/C++ (2)
- cloudera (3)
- DISK (1)
- ftp (1)
- Fuse (2)
- gdb (2)
- hadoop (13)
- hdfs (8)
- HPC (2)
- hypertable (12)
- iOS (1)
- iscsi (1)
- JAVA (2)
- KFS (5)
- kickstart (1)
- KVM (2)
- LAMP (2)
- linux (2)
- Lion (1)
- LVM (2)
- mapreduce (3)
- mpi (3)
- mpich2 (4)
- msgpack (2)
- mysql (2)
- nfs (1)
- openmp (2)
- OS (1)
- OSX (2)
- others (5)
- PBS (1)
- performance_tuning (3)
- php (3)
- phplist (3)
- programming (27)
- REST (2)
- RHCA (6)
- rhel (13)
- rhel6 (4)
- scp (1)
- shell_scripts (2)
- snowleopard (2)
- Solaris (6)
- ssh (1)
- syslog (1)
- t-442-1 (4)
- torque (1)
- ubuntu (2)
- VNC (1)
- watercolor (5)
- windows (1)
- yum (1)
網誌存檔
-
▼
2012
(32)
-
▼
7月
(12)
- hadoop with hdfs and kfs on CentOS 6 x86_64 -- sin...
- Installing HyperTable(with Hadoop) on Centos 6 x86...
- fwrite 2GB file size limitation in Linux
- KFS mount by Fuse
- ssh password-less session config
- [KFS](KosmosFS) 安裝方法一
- 大暑前的三峽聖母環山步道
- mds/mdworker process takes CPU usage over 90%
- [RHEL 6]網路保護NetworkManager
- mount cd-rom or iso-files
- mkisofs
- (Pseudo-)Enable root in Mac OSX Snow Leopard
-
▼
7月
(12)
沒有留言:
張貼留言