For some reason I cannot access my root user via SSH. It displays the error on login:
could not open session.
However I happen to have another user account that is a normal non-sudo user. Is there any way I can run a su root command or anything to make this user with sudo privilege?
I have the password of the root user.
i'm not sure how many of you noticed this but by default #!
In my linux machine, path are configured as follows
non-root user:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/java
root user:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
when i tried to
sudo echo $PATH
it shows non-root user path only not root path
but when i put
echo $PATH
in script and tried to execute with sudo, it give
So I go to run synaptic as usual and a message box pops up:Failed to run synaptic as user root.
The underlying authorization mechanism (sudo) does not allow you to run this program. Contact the system administrator.I tried in a terminal and I get a scary message from Big Brother:damo is not in the sudoers file.
Hello,
I want to create a second root user for WHM, the only difference between root and second root user is second root unable to change root's password.
This is my shell command:
Code:
useradd -u 0 -o -g root -G root -d /home/root2 root2
root@localhost [~]# id root2
uid=0(root) gid=0(root) groups=0(root)
But when I use this account to login to WHM, it says 'Invalid l
I would like to be able to use the sudo command in a chroot environment.
I start the chroot as follows:
chroot /debian-squeeze /bin/bash
Now I'm logged in as root in the chroot. I can do su user to log in as a user named user.
I just installed ubuntu on my netbook and am loving it!!
What I’m now trying to do is set up my root account.
I tried to run the following command at a command prompt:
su root
and use the password for the main account i set up during the install process. but that didn't work.
I've having some very weird issues with my MySQL (5.5) root user. I'm trying to allow an external host to access the root user, but it seems as though my root@localhost does not have "GRANT OPTION" to the local databases!
I have a VPS, until now I used the default root user for SSH access and everything. For security reasons I'd like to use a different user for root, terminal access and sudo operations. So I created another user, gave him the sudo and every other perm.
The problem is that all the system files belongs to root. What happens if I set PermitRootLogin No for root?