Quote:
#sudo su usr-name
/home/usr-name/.bash_profile: Permission denied
|
First, are you logged in as a normal user and trying to switch into a root account?
If that is the case then the command would be
su <enter> then you will be prompt for the root password.
I guess I should have started here, what Distro are you using?
If you are using one of the Ubuntu's K X then by default you are not set up with a root account. Like I said in above post you will log in as usr/name and any work needing root privileges the command will be started with sudo.
Now if you have set up a root account and you are trying to switch user into root then you don't need to give the sudo command. The command would be like so
su <enter> you will be asked for a root password, enter the root password and you will be root.
Or if you have more than one user account setup on your system, then to log into or switch user into that account the command would be
su usr/name then give the password for that user.
Or maybe I'm just not getting what your trying to do.