Questions tagged [su]

Substitute User command

Run a command with substitute user and group id, allow one user to temporarily become another user. It runs a command (often an interactive shell) with the real and effective user id, group id, and supplemental groups of a given user.

man page

126 questions
-1
votes
2 answers

su command works without prompting password

I'm on a RHEL server where the su command drops the user into root without prompting for a password. Obviously, this is a pretty big cause for concern which I'd like to fix. I'm not in contact with the previous admin, and he didn't leave any notes…
devnill
  • 307
  • 1
  • 2
  • 19
-1
votes
3 answers

"su" does not work on FreeBSD

Below I sun "su" command on FreeBSD: FreeBSD rand.vstyle.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0 amd64 This is server RAND :) [svn@rand ~]$ su logostudiotest1 /bin/ls Password: /bin/ls: /bin/ls: cannot execute binary file Why "su" does not work?!
porton
  • 312
  • 1
  • 14
-2
votes
1 answer

Is it possible to "sudo su" using ssh in bash?

#!/bin/bash USERNAME=ksmith HOSTS="linux1" YUPDATE="sudo yum -y update" FIXDATE="sudo -u echo -e 'ZONE="America/New_York"\nUTC=true' > /etc/sysconfig/clock" for HOSTNAME in ${HOSTS} ; do ssh -tt -l ${USERNAME} ${HOSTNAME} "${YUPDATE};…
-2
votes
1 answer

can't switch to root or use sudo

I've just come into the following problem: For some reason I can't use su or sudo: usr@usr-MS-7816:~$ su Password: su: Authentication failure usr@usr-MS-7816:~$ sudo su [sudo] password for usr: usr is not in the sudoers file. This incident will…
user2394156
  • 107
  • 1
  • 1
  • 3
-2
votes
2 answers

How to protect from coworkers

Hello how to protect linux account form other administrators(coworkers) in company who can use your account to steal data and point a police that you are the guy who steal data from company. if others coworkers have sudo they can change user by su…
-4
votes
2 answers

Restricting su access

I am using rhel7.2 in our envirement.I do not want any user on system to "su" to 2 specific users say "user3 and user4".But "user3 and user4" can "su" to any user in the system. Let me explain my requirement in detail.Lets say i have 4 users on…
Ankush kalra
  • 79
  • 3
  • 8
1 2 3
8
9