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

learn more… | top users | synonyms

0
votes
2answers
31 views

using su for a user which does not have a password

I am creating a user using useradd command in Ubuntu which does not require that I set a password for the user. how ever when I try to use su command to login as that user, su requires me to enter a ...
0
votes
1answer
28 views

Why is su disabled from guest sessions?

From guest you can't sudo or ssh. Why I can't sudo is simple. But why can't I su? What is it that su provides that ssh to the user@localhost wont? The reason for this question being my other ...
0
votes
2answers
42 views

What happened to su password? [duplicate]

What happened to the su password, please? No passwords, including blank, works. Also, how do you log in as the administrator?
1
vote
3answers
76 views

How to login with new user and fix error : “: No such file or directory”?

I created a user with root access useradd -ou 0 -g 0 myuser -p [12345] when I try to su to the new user, I get: : No such file or directory when I want to connect as that user via ssh, I get: ...
1
vote
1answer
30 views

Authentication failure

I'm using ubuntu 3.13.0-24-generic. I know root password and login before (my friend can use su command), root password not change but when i using su command it appear " authentication failure", What ...
1
vote
1answer
113 views

Sudo: sessions still open not unmounting

Ubuntu Trusty Tahr 14.04 is running on my computer. By mistake the sudoers file on my computer was edited and now looks like this: Defaults env_reset Defaults ...
0
votes
1answer
42 views

My server can only be run in sudo su [closed]

I have a Ubuntu server 14.04 and I can only use any user from Sudo su but I want to use a use normal without sudo su. Is there a way to disable sudo su (root)
1
vote
1answer
48 views

Difference between su and sudo su [duplicate]

Asking because of curiosity. :) When I type sudo su It asks for my user password. And when I type just su It asks for the root user password. But both the commands directs me to the root ...
0
votes
0answers
37 views

How can I get capabilities to work with su?

I added a line to /etc/security/capability.conf so I can have a user who can read everything for backups, but not do everything root can. cap_dac_read_search backup If I add a password and shell ...
3
votes
1answer
80 views

Restrict su to a group of users

Is there someway to restrict su to a specific group of users? Upon searching over the web, I came across IBM AIX's concept of sugroup. Whenever a user is created, attribute sugroup can be set; and ...
1
vote
2answers
83 views

Root user not having permissions

My root user is not working how he should. sudo works perfectly but if I login with root, autocomplete does not work for all commands which need root permission and I couldn't execute a file owned by ...
1
vote
1answer
164 views

Init file in init.d calls using sudo in script.sh give error sudo: no tty present and no askpass program specified

I an trying to make a script that launches on boot to connect to my personal VPN. I have an init file: /etc/init.d/vpnstartup which calls my vpnon.sh script on boot with the commands: case "$1" in ...
0
votes
0answers
20 views

We use sudo so i assume there is no SU passwoird or is it random? How tough is it if it exists? [duplicate]

We use sudo su. I assume there is no root password and is default? How tough is it if password exists?
0
votes
2answers
987 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
53 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
2k 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
202 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
46 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
74 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
308 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
369 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
65 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
44 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
213 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 ...
1
vote
1answer
3k 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
4answers
497 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
231 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
345 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
57 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
328 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
183 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
1answer
49 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
281 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 ...
2
votes
0answers
1k 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 ...
11
votes
6answers
28k 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
312 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
2k 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, ...
2
votes
5answers
10k 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
126 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
273 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
236 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
78 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.
1
vote
0answers
21 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
56 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
324 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 ...
1
vote
1answer
6k 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?
4
votes
1answer
15k 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
649 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
8k 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 ...
3
votes
1answer
1k 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 ...