command for substituting user i.e. logging to a session as a different user.

learn more… | top users | synonyms

0
votes
2answers
37 views

Disabling sudo su in ubuntu 14.04

I need to accomplish following things . Disable ubuntu user Disable sudo su for all user . Each user should able to execute sudo I have modified my sudoer file as below # This file MUST be ...
1
vote
0answers
22 views

Cannot go into Root

When I enter sudo su or sudo -i in terminal on Ubuntu 12.04, I cannot become superuser. When I enter the password nothing happens. Its like: user@host~: sudo -i enter passwd: ****** user@host~: ...
0
votes
2answers
67 views

“sudo su” does not pass the environment variables to the new shell? [duplicate]

su manual http://manpages.ubuntu.com/manpages/precise/man1/su.1.html The current environment is passed to the new shell. Obviously you cant use su in Ubuntu as in su but it has to be always ...
2
votes
1answer
40 views

unix - disable “su” for ssh'ers

I'd like to disable getting root at all for users who ssh in - including "sudo su" cause that's pretty much the same thing... Can this be done? Assume that I'M not ssh'ing in, and have physical access ...
0
votes
1answer
22 views

Mercurial no color in commands after doing su

First noticed in 12.04 still persists in 14.04 This happens when to change to a system user (www-data, postgres, etc) and not for a user which has a desktop profile setup. What I have tried: Copy ...
0
votes
1answer
32 views

cannot switch to root

I cannot do "sudo su" It says "Cannot execute /bin/bash: No such file or directory". I have not bash file at /bin/bash. Please let me know how to recover it. I tried copying it from other system or ...
1
vote
0answers
70 views

su - Authentication failure; account accessible from root, not from user

I know there are tons of articles about authentication failure, but I think my case is specific. I have created groups and user oracle using this link: ...
3
votes
1answer
80 views

LibreOffice4.2 Fatal Error

Does it mean to say that I am not the root user ? But I am the root and have both sudo and su access. So why don't I have the sufficient access to open Libre Office?
0
votes
0answers
55 views

Couldn't Start Dropbox

Always displays this error saying permission but don't works well even after I provide the super user password.
0
votes
1answer
35 views

Is there a way to have the login password different from the su password? [duplicate]

I have a friend that's running Debian and his computer login password is different from the superuser password. I was wondering if there's a way to do this in Ubuntu?
0
votes
1answer
94 views

“su” or “whoami” not working

I am connected to an Ubuntu 14 via ssh with user "nuri". I am trying to change the user with "su" command and no success. Below i enter the password for deneme2 correctly and check whoami. Afterwards ...
0
votes
1answer
616 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
136 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
161 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
128 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
40 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
95 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
91 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
13 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
47 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, ...
1
vote
1answer
117 views

Running a Screen instance of a program as non-root

I've got a dedicated server (Ubuntu 12.04, no GUI) set up to launch an instance of McMyAdmin and attach it to a screen instance every time I reboot the hardware. I have the command saved to root's ...
1
vote
0answers
722 views

Run script in /etc/rc.local under specific user

I am using portia (https://github.com/scrapinghub/portia) and I have set the following command in my rc.local: cd /home/portia/portia/slyd && twistd slyd Problem here is that the ...
7
votes
4answers
8k 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
128 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
1k views

PAM USB on 14.04 su “username” = “no passwd entry for user 'Thornton'”

I followed the directions located here http://linuxconfig.org/linux-authentication-login-with-usb-device Once I reached step 4 I found that the changed authorizations did nothing, so I reverted back, ...
1
vote
5answers
2k views

Why does su fail with “authentication error”? [duplicate]

I tried to su to root so I could install lights, but I get an authentication error when I try: user@host:~$ su Password: su: Authentication failure
0
votes
1answer
51 views

su to different user no longer working in 12.04 LTS

I want to log on as tomcat7 user in a different bash command shell. I used to be able to do this by doing the following: sudo su - tomcat7 But when I enter this command now I get returned to the ...
0
votes
1answer
119 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
158 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
66 views

Can not enter password [closed]

Am new at ubuntu i tried to install a kdeplasmadesktop addons, and by typing su -c 'yum update kdeplasma-addons' from the terminal it ask for password but can not type any in. Thanks.
0
votes
0answers
14 views

Two different versions in root and in public

I am starting out with ubuntu so forgive me for the beginner's question. I tried to look for it here and I found nothing... I installed anaconda for all the python packages and I had some of them ...
0
votes
0answers
17 views

how to disable/remove call to pam_authenticate for Su

i am using following Ubuntu Linux ubuntu 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013 i686 i686 i686 GNU/Linux I want to disable call to pam_authenticate in Su utility for my ...
1
vote
0answers
20 views

permission to write in root/usr/share/kde4/apps [duplicate]

i am trying to just do basic theming.. there isnt an install button for "Desktop Theme" so i am trying to copy the files to root/usr/share/kde4/apps/desktoptheme but get access denied message every ...
1
vote
3answers
47 views

Reassigning su command

I accidentally linked my "su" command to Sublime Text binary (that's what you get when you trust hitting tab without looking...) Now, "su" just opens a SublimeTExt session. Does anybody know how can I ...
2
votes
1answer
237 views

Why can't I use `su --session-command` on Ubuntu?

In trying to solve a problem, I discovered the --session-command argument to su, as documented here. I tried to use it on my Ubuntu 12.04 system at work, but got an 'unrecognized option' error. Sure ...
0
votes
1answer
3k 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
8k 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 ...
0
votes
1answer
454 views

Can't install xampp for linux

I'm trying to install xampp as shown here, with the following line: su chmod 755 xampp-linux-1.8.3-installer.run ./xampp-linux-1.8.3-installer.run Su goes well, but the terminal doesn't run the ...
0
votes
2answers
2k views

What is the command to switch to normal user? [duplicate]

I am trying to "su/sudo" command to switch to a regular user. It asks me password and I enter admin password then it says su: Authentication failure. How can I switch to regular user, what is the ...
2
votes
1answer
945 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
226 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 ...
33
votes
1answer
41k 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
216 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
0answers
4k views

Is there a single line command to do `su`?

I can do an su with su <username> and it asks for my password. Is there a password parameter for su such that i wont be prompted for a password? e.g. su <username> -p <password>
1
vote
1answer
2k 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
291 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 ...
2
votes
2answers
132 views

root@mickey:/#su goofy && ssh goofy.com — why does this fail?

mickey (who is logged in as root) tries to use goofy's account to ssh into goofy.com. root@mickey:/#su goofy && ssh goofy.com however this fails to login goofy on goofy.com, instead: ...
3
votes
1answer
154 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
3answers
7k views

Make directory command not working

I am new to the Ubuntu. I have logged in as guest then switch to namu user and want to make directory but get error as follows: gest@ubuntu:~$ su namu Password: namu@ubuntu:/home/gest$ cd .. ...
0
votes
2answers
6k views

su: Authentication failure

I have downloaded the Eset Nod32 Antivirus from its website, and I got a eset_nod32av_64bit_en.linux file. I have right-clicked on it, Properties - Permissions, and checked the Allow executing file as ...