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

learn more… | top users | synonyms

0
votes
1answer
20 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
20 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
9 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
37 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
40 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 ...
0
votes
0answers
55 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 ...
3
votes
4answers
588 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
42 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
0answers
243 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
110 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
46 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
78 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
91 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
45 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
10 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
19 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
36 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
169 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
972 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
2k 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
300 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
358 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
110 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 ...
2
votes
1answer
710 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
160 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
125 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
1k 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
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
246 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
246 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
115 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
127 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
5k 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
3k 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
94 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
387 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
573 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
1k 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
730 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
234 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
57 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
2k 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
58 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
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 ...
3
votes
2answers
21k 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?
8
votes
1answer
7k 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
596 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
372 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 ...