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

learn more… | top users | synonyms

0
votes
4answers
28 views

Why does su fail with “authentication error”?

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
36 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
48 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
61 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
35 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
13 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
9 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
18 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
33 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
101 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
286 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
764 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
173 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
134 views

What is the command to switch to normal user?

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 ...
0
votes
0answers
62 views

Oracle Database 11g on 12.04 issues

I've been attempting to setup Oracle on 12.04, but I've run into some issues. I've been using http://geeksharing.blogspot.com/2011/02/installing-oracle-database-11gr2-on.html as a guide and it has ...
1
vote
1answer
552 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
128 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 ...
0
votes
1answer
77 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 ...
0
votes
0answers
657 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
931 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
209 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 ...
0
votes
0answers
237 views

passwd history through PAM not working (and weird 'Authentication token manipulation error' when using passwd)

I'm trying to set my password policy to remember the last two passwords a user chose, and to prevent him or her from re-using those particular passwords. I'm currently running Ubuntu 12.10 through ...
2
votes
2answers
102 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
110 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
4k 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
2k 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 ...
0
votes
1answer
87 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
340 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: ...
0
votes
1answer
428 views

Unable to SU with root: `/bin/bash: permission denied`

root@frankfurt:~# sudo adduser newuser Adding user `newuser' ... Adding new group `newuser' (1001) ... Adding new user `newuser' (1001) with group `newuser' ... Creating home directory ...
2
votes
2answers
942 views

What does the script /dev/null do?

I was sued into another user to run screen, but I got the error Cannot open your terminal '/dev/pts/4' - please check. I found a solution: script /dev/null and after that I can use screen. Why does ...
1
vote
2answers
1k views

'root' user does not exist?

When I run the su command, the terminal returns: user 'su' does not exist.How do I add the root user? Can anyone answer this? I tried sudo adduser su, but after this, I get the same problem.
1
vote
1answer
624 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 ...
1
vote
1answer
195 views

How can I load gui applications under an su session?

When I log into gnome in Ubuntu 12.04, I can type the following on the command line to open a pdf: evince mypdf.pdf However, the following does not work. su evince mypdf.pdf That gives the ...
1
vote
0answers
47 views

How can I perform the su command to switch to a network user without a password?

I have a local user and a network user (authenticated over LDAP) that I frequently use su to switch to for certain tasks. I'm wondering how I can avoid typing the password for the network user every ...
3
votes
3answers
1k views

segmentation fault when using su or sudo

example of the problem: $ su Segmentation fault $ sudo ls Segmentation fault I tried to compile sqlite3 from source earlier. I don't know what libraries it installed. This may be the reason why ...
1
vote
1answer
51 views

switching to new user limits console capabilities

I'm creating a new user: groupadd sybase useradd -g sybase -d /opt/sybase sybase passwd sybase chown sybase:sybase /opt/sybase chown sybase:sybase /var/sybase then switch to this user: su - sybase ...
4
votes
1answer
1k 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 ...
3
votes
2answers
16k views

What is the root password for a live usb stick? [duplicate]

ubuntu@ubuntu:~$ su Password: su: Authentication failure I installed Ubuntu to a USB stick. I didn't set any password any time - why can't I use su?
6
votes
1answer
5k 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) ...
1
vote
2answers
501 views

Changed account to auto login, now su password does not work

I have one user account on my laptop, and it has the same password as the su password. I changed the user account to an auto login account, and now the user password is not accepted (i.e. ...
0
votes
4answers
318 views

How do I avoid su-ing to root

I need to install Symantec Antivirus for Linux on my computer. According to its README file, it says: Debian and Ubuntu users should use sudo For installation and when you execute Symantec ...
1
vote
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 ...
35
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 ?
3
votes
3answers
3k views

“Successful su for user by root” - suspicious entries in my /var/log/auth.log?

This post on reddit made me go through my logs. That's when I discovered the following entries which appeared on two non-subsequent days. "user" is my user account. Aug 4 22:50:37 UbuntuSystem sudo: ...
1
vote
1answer
374 views

Why doesn't “su bind” work?

When you do apt-get install bind9, there gets a user bind created. I'm having some trouble with my bind installation. See How can I add file create read write and delete for a specific ...
7
votes
6answers
8k views

How can I run an application with a GUI as super user from a normal user session?

I defined 2 users: one with admin privilege (lets call it admin) with sudo right. a 2nd one without any privilege (lets call it normaluser) and I configure the autologin on this 2nd user normaluser. ...
1
vote
1answer
71 views

CLI looking/acting strange on a BeagleBone

I'm having an issue with the Command Line Interface. I'm running Precise 12.04 armhf on a BeagleBone and all the functionality works fine that I need. I have a 'cosmetic problem' when logged in as the ...
1
vote
2answers
3k 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 ...
2
votes
4answers
5k views

I can't su as root, my account type is admin BUT am I root? [duplicate]

Possible Duplicate: su command + authentication failure i installed ubuntu successfully, but then i tried "su" on terminal and entered my password, authentication failed! and I don't think ...
1
vote
1answer
567 views

How to determine which version of a compiler is installed?

I have the gfortran, but I have been told that gfortran versions 4.2 and older lacked some f90 functionality. How do I determine which version is already installed? Also, can I install the latest ...