Re: Opening applications as a different user

From: Frank (frank13_at_snet.net)
Date: 07/16/05


Date: Sat, 16 Jul 2005 13:15:28 GMT

Click Start, Run Command.
Click the Options tab, Check run as other user.
Enter the user name and password then enter the application that you want to
run in the command window ie: Mozilla

"Dee" <detox@mail.vu> wrote in message news:3jrop9Fqt6s6U1@individual.net...
> I'd like a simple pointer how I can get applications to run as a different
> user without logging out or opening a new terminal - basically along the
> same lines as the "Run As" command allows in Windows XP. If for instance
> my husband wants to check something on the Internet, he can open an
> instance of Mozilla as himself, with his bookmarks etc.
>
> I realize there is the sudo command, but if I understand it correctly,
> that only seems to let one run with root privileges?
>
> If for example I do:
>
> dee@stranger:~> sudo -u peter mozilla
> Password:
>
> I will then get:
>
> DISPLAY empty or unusable
> DISPLAY=:0.0
>
> I have tried # xhost +localhost, but to no avail.
>
> If I simply do:
>
> dee@stranger:~> sudo mozilla
>
> then an instance of Mozilla opens, but it is the same as if I opened it
> without sudo - i.e. my bookmarks etc.
>
> If I do:
> dee@stranger:~> sux
> Password:
> stranger:/home/dee # mozilla
>
> then an instance of Mozilla opens without any issues, with a default theme
> & bookmarks. Root GUI account is not used in this household, so all of
> those are defaults, as they should be.
>
> This is precisely the scenario I want, but for the other regular user, not
> for root.
>
> In case this is of any assistance, my /etc/sudoers file goes thus:
>
> # sudoers file.
> #
> # This file MUST be edited with the 'visudo' command as root.
> #
> # See the sudoers man page for the details on how to write a sudoers file.
> #
>
> # Host alias specification
>
> # User alias specification
>
> # Cmnd alias specification
>
> # Defaults specification
> Defaults targetpw # ask for the password of the target user i.e. root
> %users ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults
> targetpw'!
>
> # Runas alias specification
>
> # User privilege specification
> root ALL=(ALL) ALL
>
> # Uncomment to allow people in group wheel to run all commands
> # %wheel ALL=(ALL) ALL
>
> # Same thing without a password
> # %wheel ALL=(ALL) NOPASSWD: ALL
>
> # Samples
> # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
> # %users localhost=/sbin/shutdown -h now
>
> I confess this does not make a lot of sense to me. Can anyone offer any
> advice?
>
> Thank you.
>
> Dee Stephens



Relevant Pages

  • Re: Probleme mit Sudo
    ... # This file MUST be edited with the 'visudo' command as root. ... # See the sudoers man page for the details on how to write a sudoers file. ...
    (de.comp.os.unix.linux.misc)
  • Re: /sys/power/state question with sudoers!
    ... # This file MUST be edited with the 'visudo' command as root. ...
    (Debian-User)
  • Re: /sys/power/state question with sudoers!
    ... # This file MUST be edited with the 'visudo' command as root. ... As I understand it, sudo provides access to commands, not files. ...
    (Debian-User)
  • Re: sudo Configuration
    ... # This file MUST be edited with the 'visudo' command as root. ... # See the sudoers man page for the details on how to write a sudoers file. ...
    (RedHat)
  • Re: Apple recommending anti-virus software for Macs?
    ... > To be ultra-safe with the 'rm' command, ... Not a bad idea for root, It would drive me nuts in my user account. ... downloads directory and executing it. ... That I type an EOF is a trivial difference versus 'sudo' exiting ...
    (comp.sys.mac.system)