Updatet: Ubuntu 11.10 64bit. Error while logging in: Cannot update /home/marek/.ICEauthority .In the meantime i can work in terminal as sudo with ctrl+alt+F1 and know, that the file has no rights for the admin-group, only for me as admin marek. So this right has to be set. Also i don´t know the command to start from terminal the graphic-destop and must break down the system to go back.
Amazon EC2-instance:
I made a user 'admin' and copied ec2-user's keys with proper permission.
After successful login, i tried to do sudo su for root access, it says 'admin is not in the sudoers file. This incident will be reported.'
However i can do sudo su with ec2-user account and can gain root access.
What is sudoer file?
I'm able to SSH to my server (CentOS 5.9) using an admin account with sudo privileges:
$ ssh admin@myserver
Last login: Wed Feb 27 19:23:11 2013 from [IP ADDRESS]
[admin@myserver ~]$
Then I can su to root:
[admin@myserver ~]$ sudo su root
[sudo] password for admin:
[root@myserver admin]#
But I can't su to another user, and the su command is not telling me why:
[admin@myserver ~]$ sudo su
I'm running Ubuntu 11.10. I'm trying to setup a user that's essentially a clone of the permissions of the ubuntu user. This works but I'm not able to sudo with this new user without supplying a password (which I don't even have for this user).
On a regular linux machine, when I use sudo -s as a normal user, I become root but HOME still points to ~user, so every admin has his own environment etc. (this is without env_reset or always_set_home set).
On a system where the home directories live on an AFS file system, this also works, if the environment variable KRB5CCNAME is preseved, as root can read this file in /tmp.
In the terminal, I entered
sudo deluser myself sudo
and
sudo deluser myself admin
Why do I still have root privileges under this user?
I made a new user and added it to "sudo" and "admin." I want to have someone else set the password for it, so I can lock myself out of the hosts file when URLs are blocked.
I have Ubuntu 12.04 LTS installed and have read many articles on finding a way to change the admin password as i forgot it after installing it a while ago. I have 2 users on this comp which i know the pass to 1 but the admin 1st user i can no longer get into. I have tried many ways like going through grub, root and trying to unmount.
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.
sudo -i in the terminal will made normal user into root user & after changing into root user if we exit then again we will be back to normal user.If we try again , next time it directly takes me into a root user without asking the password.
So why this is happening and what's the timeout of this facility?
Bottom Line: why turning into root user with out asking the password.