Re: 'su' without password



On Thu, Feb 19, 2009 at 3:28 AM, Pol <xtekhne@xxxxxxxxx> wrote:
Smoot Carl-Mitchell wrote:
sudo -u user2 command args ...

It seems that 'command' does not get the environment of the user2, this way.


sudo su - user2

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: su without password
    ... sudo -u user2 command args ... ... It seems that 'command' does not get the environment of the user2, ...
    (Ubuntu)
  • Re: Problems with su/sudo
    ... that what they really mean is "sudo sh". ... don't need to use su to become root -- any command you run will be as ... environment the way I want it and then I don't care what root's ...
    (comp.sys.mac.system)
  • Re: log off command
    ... in both cases user2 gets logged off. ... user2 is not logged on at the time that the command is issued). ... SOON 3600 LOGOFF %ID2% ... Matija Hrovat ...
    (microsoft.public.windowsxp.basics)
  • Re: su without password
    ... You can do it with "sudo". ... like this to the sudoers file: ... Then user1 can run a command as user2 by typing: ...
    (Ubuntu)
  • Re: x11 forwarding after becoming another user on SecureCRT
    ... I haven't had a chance to test this ... if user2 doesn't have a valid password?. ... I can only sudo ... Do I have to open any port say "6000"? ...
    (comp.os.linux.security)