dsenableroot(8) BSD System Manager's Manual dsenableroot(8)NAME
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.
EXAMPLES -dsenableroot
Your username will be used and you will be queried for both your password and the new root password to be set to enable the root
account.
-dsenableroot -d
Your username will be used and you will be queried for only your password to disable the root account.
-dsenableroot -u username -p userpassword -r rootpassword
The supplied arguments will be used to enable the root account.
-dsenableroot -d -u username -p userpassword
The supplied arguments will be used to disable the root account.
Mac OS August 08 2003 Mac OS
Check Out this Related Man Page
su(1) General Commands Manual su(1)Name
su - substitute a user ID
Syntax
su [username]
su - [username]
su -f [username]
Description
The command requests the password of the specified username. If the correct password is given, changes to that username without changing
the current directory. The user environment is unchanged except for HOME and SHELL which are taken from the password file entry for user-
name. The shell that is run is also taken from the password file entry for username. The new user ID stays in force until the shell
exits.
If no username is specified, `root' is assumed. To remind the superuser of his responsibilities, the shell substitutes `#' for its usual
prompt.
Options-f Prevents from executing the .cshrc file, making start up faster.
- Simulates a full login.
Diagnostics
Sorry
An invalid password was supplied for the specified username.
Unknown login: username
The specified username was not found in the passwd database.
No directory
The home directory for the username is not accessible at this time (only with ``-'' argument).
No shell
The shell specified in the passwd database entry for username could not be executed.
Kerberos initialization failure
Consult your system administrator.
If enhanced security features are enabled the following error messages are also possible:
Requires secure terminal
Attempt to su to UID 0 on a line that is not marked secure in
User's password has expired
Access is denied because the password for username is expired.
This account is disabled
Access is denied because the auth entry corresponding to username is marked disabled.
Files
Log file of anyone who became
root, with a date mark.
See Alsocsh(1), sh(1), passwd(5yp), environ(7), edauth(8)
Security Guide for Administrators
Security Guide for Users
su(1)
Hi
I have make a program that needs root privleges but any user can try to run it, so what I want it is, when any user tries( other than root ) to run the program, an input prompt would open to enter root password ( if user knows ) and program will run ( otherwise exit ), and after completing... (21 Replies)
That's basically what I need to be. The software I'm trying to install will not allow the installer to be the root user. I've tried making my own account a member of the root group, but that does nothing.
I'm using SunOS 5.9. (11 Replies)
I have a SunBlade 150 sparc machine. I get this box without root password. When I truned on the machine and typed ctrl -D to run under normal mode. The file system couldn't be mounted. If I don't care about current system and files on the machine and want to rebuild this box with solaris 10. Can I... (13 Replies)
Hi.
I have an issue with root account. System doesn't let me to log on, because accound is disabled/locked.
This problem since I have converted passwords file to data base using SAM.
I didn't change user's parameters.
Somebody knows how can i enable my root account back? (14 Replies)
Hi AIX Gurus,
I've purchased a second hand pSeries and don't know the root password. I've used the following instruction to reset root password and everything seems just fine. However, after it reboots, the system still says the root password I used is invalid. I really don't know why. I did... (12 Replies)
I would like to know how to hide my initial account (which is an administrator account) in the new Leopard 10.5 operating system.
In the old OS 10.4 this could be done very easily with the help of NetInfo Manager. You could change the UID to anything below 500 and secure your account, however in... (11 Replies)
Hello,
forgive me if this seems a bit trivial to you but I am fairly new to HP-ux having worked with AIX for the past 15 years. We have inherited a couple of HP-ux servers without any tape drives and running Hp-ux v11. I am familiar with creating mksysbs on our AIX Nim server for recovery and... (12 Replies)
Hi,
I'm the root user on my computer, but I'm writing a script that does a lot of file handling. Every time I create a file or directory it automatically requires root privileges. Is there a way I can just create a file that the user can access without a password?
For example in my script I... (20 Replies)
Hi,
I've put the correct root password but why do I get this below?
huamin@SOL11I:~$ su
Password:
su: Sorry
huamin@SOL11I:~$
Many Thanks & Best Regards,
HuaMin (16 Replies)
Hello,
A admin at work created accounts for me on about 20 SLES 11 servers. He gave me the wrong home directory. He also didn't create a home directory for me on the servers. I have root/sudo on the systems. I usually use the usermod command or just modify the /etc/passwd file to fix issues like... (11 Replies)
Dear Shell Expert,
I have requirement of replacing passwd field in number of files based on username in them.
The matching username and "new" password in available in a separate file. below is the sample for both.
#sample of one of the file content, red highlighted field are username and... (20 Replies)
Hi
I would like to create another root account, for example root2. I added a new user named root2 and set it's uid and gid ( in /etc/passwd ) to 0. Then I logged in ( account root2 ) and the server asked to change the password, so I changed.
And the problem happend. The password of both root... (15 Replies)