0
votes
1answer
61 views

Authentication Failure while accessing super-user privilege

I get the root privilege when I type sudo. But when su asks for the Password, which I type in, the terminal says su: Authentication Failure
0
votes
3answers
51 views

sudo -s works but su does not in ubuntu?

I have Linux Virtual machine (ubuntu 12.04) installed on my Mac OS. On my terminal, user@192.78.0.1:~$ su password: su : Authentication failure user@192.78.0.1:~$ ls -lth /bin/su -rwsr-sr-x 1 root ...
0
votes
2answers
118 views

What is the root user

If you use sudo su - or sudo -s you will get the full root certification "likewise a root user ". Is this user an official user or is it from canonical? ~$ sudo su - [sudo] password for username: ...
-1
votes
1answer
53 views

How to make everything run as root in ubuntu? [duplicate]

I have setup a virtual machine for compiling software for linux which I develop on Windows. I setup to automount a windows folder, run compilation scripts and then just shutdown. The machine isn't ...
1
vote
1answer
30 views

Re-disabling the root account

In ubuntu by default the su (root) password is not not set. I have set it by using the sudo passwd (see link). But I didn't like it. Can I go back to my original state.
0
votes
1answer
44 views

No command '“alias' found

Recently, Ubuntu stopped detecting my android device when I plugged it in with USB, so I was looking to fix the problem. In the process, I found this thread and I followed the steps on it. Only on the ...
0
votes
1answer
46 views

Setup SSH keys to login as super user

I have a random question. I am new to SysAdmin side, so not sure if I am doing it right way or not. We have a sudo user setup called wladmin an host1. I login to host 1 as myself, then do following ...
0
votes
0answers
11 views

How to gain root access to UEC image?

When openstack creates an instance from a UEC image (using precise amd64), the SSH public key is successfully injected via cloud-init and I'm able to ssh into the instance via the ubuntu account, but ...
0
votes
1answer
39 views

Ubuntu sudo su and server su clarification

I have a question about root. when i want to change to root in ubuntu have to type: sudo su - i am not allowed to type: su and su - root Howerver it works the other way around on my server, ...
4
votes
4answers
2k views

How to avoid prompt password for sudo?

I know I can go root (super user) via the su command but I have to authorize it after firing the commands. Is there a way I can go root and authorize (with password) in one line
0
votes
1answer
60 views

Wrong Permission to /etc folder [duplicate]

I given wrong permission to the /etc folder wrongly chmod -R 777 /etc While i want to login as root it gives me error and gives the following output. How can i give the correct permission and fix ...
0
votes
1answer
90 views

Getting permission denied error

I have written one bash script and it is run on the background, inside this script I have use the following command: sshpass -p prakash123 ssh -t -p $1 prakash@localhost './update_script.sh > ...
2
votes
2answers
112 views

What is the difference between sudo -i and su? [duplicate]

It seems as if there is no difference whatsoever. When the whoami or id commands are run, they all yield root credentials. Is this an illusion? If the root account is disabled by default in Ubuntu, ...
0
votes
1answer
2k views

How do I allow only one user to su to another account?

I have user-a and user-b on my box. How do I do a no-password su - user-b as user-a?
2
votes
1answer
4k views

Sudo command not found (su login not working)

I had a system crash and now my Ubuntu runs into low-graphics mode. All the fixes require running commands with sudo. When I try this I get sudo: command not found. When I try logging in with su - I ...
2
votes
1answer
800 views

Where's runuser?

I'm making an upstart job, and I need to run an executable as another user. Nothing fancy like su provides, and none of the mixed-up SELinux contexts that come along with it. A quick internet search ...
1
vote
1answer
186 views

Why does the “who” command not show “root” as a logged in user?

When I log in as root from gnome-terminal using the command: sudo su it logs me in as the root user. Isn't this switching a user considered as a log in? Also, which command can show me all the ...
19
votes
1answer
26k views

'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?

When I'm doing something that requires root be typed in dozens of times in a row, I prefer to switch my session to a root session. In the various tutorials and instructions I have used on the ...
0
votes
1answer
148 views

Accessing sudo from a non-administrator profile

I have had Ubuntu for a few months by now, and I have set up an administrator profile and a 'normal' account, which I use for everyday work. Sometimes I need the admin profile, e.g. to install ...
1
vote
1answer
1k views

Sudo su setting default password automatique [duplicate]

I'm a newbie linux (Ubuntu) user and i have a question to sudo su, I always like use the root in the shell for no annoying privilgies errors :) But the problem is sudo su always ask me for a password ...
1
vote
0answers
255 views

sudo -Hu rsyncuser rsync --progress -avz /source/path/ host.org:/destination/path/ - why does it change directory permissions?

here is my setup: on my source machine i created user rsyncuser with reading and writing permissions in /source/path on my destination machine i created user rsyncuser with reading and writing ...
3
votes
1answer
134 views

su not properly logged when using byobu [closed]

We're seeing varations in our logs when a user su's from a byobu session vs. a regular shell session. When using a regular session the lines in /var/log/auth.log look like this: root@delta:/var/log# ...
0
votes
1answer
95 views

SU, SUDO and Upgrade problem

i have a big problem with my Ubuntu PC. When i try sometigng need sudo or su, nothing is working and the OS Upgrade too, when i write the root password to the su command i have a "autentication ...
0
votes
1answer
414 views

problem with PATH when using $su

OK, I'm having a bit of an issue with PATH and running a process as another user under Ubuntu. First, we check where the bin is: root@host:~# whereis start-stop-daemon start-stop-daemon: ...
1
vote
1answer
752 views

permission denied as root

I am trying to run chown on a directory and I get a permission denied. I have tried running sudo and also running the command as root. If root doesn't have permission, how can I change the owner of ...
4
votes
1answer
2k views

sudo su doesn't change users for mysql

Last night, on my server, I did: sudo su - mysql to change to the mysql user so I could run the mysql client, which is set up so it will only authenticate from the mysql account. I successfully ...
8
votes
1answer
8k views

How to run a command as a user whose login is disabled?

I am trying to use the su command to run an application as another user In this case I am trying to run irssi blah@ubuntu: su - [username] irssi (enter password) blah@ubuntu: (nothing happens) ...
2
votes
3answers
3k views

Best practices for using 'sudo su'

I have been using the terminal for a while now and sometimes (actually, a lot of times) I use a command, like: cp /etc/test ~/testFolder/ and I get this error: cp: cannot open `/etc/test` for ...
36
votes
3answers
4k views

What are the differences between sudo, su, visudo, chroot, and gksu?

What are the differences between sudo, su, visudo, chroot, and gksu ?
10
votes
7answers
13k views

How can I run an application with a GUI as admin from a non-admin user session?

I defined 2 user accounts: one with admin privilege (with sudo right) => lets call it adminuser. a 2nd one without any privilege => lets call it normaluser and I configure the autologin on this 2nd ...
1
vote
2answers
4k views

Passwordless su in a Bash script?

I've run into a dilemma while migrating a Hadoop installation from Oracle Enterprise Linux to Ubuntu. The prior developer put the following command into rc.local within OEL: su reporter -c "cd ...
1
vote
1answer
417 views

I can't do “sudo”

Let's describe it from the beginning: I was planning to re-enable the password requirement in LightDM for security reasons. But, since my PC's been sluggish these times, it FC'd the password setup ...
30
votes
4answers
61k views

Difference between “su”, “sudo -s”, “sudo -i”

I already read it from manual but I can't see difference.. su - change user ID or become superuser sudo -s [command] The -s (shell) option runs the shell specified by the SHELL environment ...
2
votes
3answers
564 views

how to recover from mounting /usr/ nosuid

I was able to move /usrto an external harddrive. In fstab I mistakenly mounted the drive with nosuid. Now I can't use sudo or su. I can't edit the fstab entry. When I manage to open it I can't do so ...
1
vote
2answers
291 views

sudo, su problems [duplicate]

During the installation process I was asked to set a password. I chose a password (a strong one) and everything goes smoothly every time I log in. Problems arise whenever I resort to "sudo" or "su" ...