Re: Opening applications as a different user
From: Frank (frank13_at_snet.net)
Date: 07/16/05
- Next message: Dee: "Re: Opening applications as a different user"
- Previous message: billwg: "Re: Linux Market share?"
- In reply to: Dee: "Opening applications as a different user"
- Next in thread: Dee: "Re: Opening applications as a different user"
- Reply: Dee: "Re: Opening applications as a different user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Dee: "Re: Opening applications as a different user"
- Previous message: billwg: "Re: Linux Market share?"
- In reply to: Dee: "Opening applications as a different user"
- Next in thread: Dee: "Re: Opening applications as a different user"
- Reply: Dee: "Re: Opening applications as a different user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|