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

learn more… | top users | synonyms

0
votes
0answers
22 views

sudo and su both not working

When I am running the command sudo apt-get update and after entering the password I am getting xxx is not in the sudoers file. This incident will be reported.. I have searched for this found ...
0
votes
1answer
22 views

Getting to root [duplicate]

I've checked the question archive and can't find an exact answer to the following. I have just installed Ubuntu on a new PC. While I'm fairly proficient in lumbering about in MSs operating console, ...
1
vote
1answer
58 views

Difference between sudo -u and su -c

The following is being executed from an account with sudo privileges: I have a user tomcat created with the following command sudo useradd -g tomcat -d /usr/local/tomcat -m -s /bin/false tomcat I ...
0
votes
0answers
10 views

Help me recover my SU password for Kubuntu 14 [duplicate]

PLEASE HELP ME, PEOPLE I enter my Kubuntu 14 system normally, but now I need my SU password, which I have forgotten. I HAVE TRIED to enter so called Ubuntu OS menu pressing left or double SHIFT ...
0
votes
0answers
20 views

Saving X11 when logging in another account

My problem is I can't use Graphical X11 when I go to other user account through sudo su - some_user. So, firstly I connect to the remote host using the following command: ssh user1@host -P port -X ...
4
votes
0answers
64 views

How is the guest account prevented from using su and sudo?

It's already known that the guest account can't use su or sudo: Why is su disabled from guest sessions? Sudo not available in guest login How is this done? My guess would be apparmor. However, ...
0
votes
1answer
24 views

What are the possible ways to access my account from guest session?

My user account is recently damaged. Damaged in the sense, after I enter the password the same login screen is redirected again. So now I've to use the guest session. Are their any possible ways to ...
0
votes
1answer
26 views

Install mobile partner using super user

I am trying to install mobile partner of Huawei Technologies. The manual asks me to run the install file using super user command. As I type the su command, it asks password. I don't know the password ...
1
vote
1answer
73 views

Can I have my ubuntu linux sudo/su password diffrent from my desktop login password?

Is it possible to have a desktop login password different from the password use for super user permissions like for example when you are installing software or running a command in sudo or something ...
0
votes
1answer
53 views

Why can't I explicitly source a file using su -c?

I'm trying to get su to source /home/ghost/.bashrc, but it doesn't seem to load the contents: $ su -l -c 'source /home/ghost/.bashrc; nvm' ghost -su: nvm: command not found I use nvm to manage Node ...
2
votes
0answers
208 views

no passwd entry for user administrator

I am in a terminal session and try to su to the administrator account. I get a response of no passwd entry for user administrator. I can logout and login as administrator account just fine with the ...
1
vote
1answer
143 views

How can I make running a command depend on the input of a correct password (Tkinter GUI)?

I created a small GUI in Tkinter/python: import Tkinter import tkMessageBox import os top = Tkinter.Tk() top.geometry("400x250") def root_login(): os.system("gksudo su && sudo su") ...
3
votes
0answers
92 views

I locked myself out from using su or sudo. I'd like to understand what I did there

In an attempt to increase the numer of files my domino server is allowed to handle, I changed /etc/security/limits.conf, adding following lines. notes soft nofile 60000 notes hard nofile 60000 ...
0
votes
0answers
17 views

Can I Mount a portable hard drive using console, neither being a sudoer nor having the super-user password?

basically the title has my question Can I Mount a portable hard drive using console while neither being a sudoer nor having the super-user password? Once I give my user's password it tells me that ...
7
votes
1answer
342 views

Which files are sourced when using su -c?

Context You are working on Ubuntu LTS 14.04. You are logged in as the root user. You run the following command: exec su simple_user -c "/bin/bash /etc/init.d/simple_user_service" So that the ...
2
votes
1answer
260 views

sed permission denied when using pam_exec with su

I'm using pam_mount.so to automatically mount a CIFS share for users on an Ubuntu 14.04 client. pam_mount uses a local conf in every users home directory. I'm running a bash script with pam_exec that ...
0
votes
0answers
23 views

Ubuntu 14.04 USB issues

I need to create a steam directory on a usb drive. How can I give my drive permanent su rights so I don't have to mess with it every time I boot the system?
0
votes
1answer
34 views

Redirection operator priority in Bash [duplicate]

This command does not work: $ sudo echo 3 > /proc/sys/vm/drop_caches bash: /proc/sys/vm/drop_caches: Brak dostępu But when I gain root priviliges separately everything works. root@pc:~# echo ...
-1
votes
2answers
74 views

difference between sudo su - and su - [duplicate]

I have tried in Google but couldn't get exactly what I need. Could somebody explain the difference between sudo su - & su - Thank you.
0
votes
0answers
28 views

why the first to switch root user password is required ?

When I Bahrain ubuntu system , the first time in the terminal to switch to root users are prompted for a password , I did not remember to set the root password when loading system . Who can tell me ...
0
votes
2answers
151 views

Problems with su: Authentication Failure

I am currently using Ubuntu and am 100% new to Unix. I have installed Ubuntu to program in C and will be using the "Learn C the Hard Way" online textbook ...
0
votes
2answers
254 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
71 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
1answer
105 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
788 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
74 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
578 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
67 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
2k 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
1answer
91 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 ...
4
votes
1answer
313 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
434 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
544 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 ...
1
vote
2answers
3k 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
96 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
5k 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
442 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
75 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
216 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
605 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: ...
2
votes
1answer
513 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
1answer
57 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
367 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 ...
3
votes
3answers
9k 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
993 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
399 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: ...
0
votes
1answer
1k 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
78 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
549 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
262 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 ...