[clue] ubuntu admin login as user
Matt Dew
marcoz at osource.org
Fri Mar 11 19:12:30 MST 2011
xhost +si:localuser:hisusername
will allow only a local acct named hisusername to open windows.
On 03/11/2011 11:34 AM, Chris Hirsch wrote:
> You can probably also do a "xhost +" from the logged in user in a
> terminal window. This allows anybody to connect to your X server
> including root.
>> Yaverot writes:
>>> I can:
>>> sudo su hisusername
>>> but then the program I want to run can't access the running copy of X.
>> I'd assume you're getting something about not being able to
>> authenticate to the X server. "Invalid MIT-MAGIC-COOKIE-1 key" or
>> somesuch. Or possibly that DISPLAY isn't set at all.
>>
>> If so, try this instead:
>>
>> echo $DISPLAY
>> xauth list
>> # sudo clears lots of environment variables.
>> # su without '-' option changes a few, too
>> sudo su hisusername
>> export DISPLAY=WHAT_DISPLAY_WAS_SET_TO_ABOVE
>> export XAUTHORITY=~hisusername/.Xauthority
>> xauth add OUTPUT_FROM_XAUTH_LIST_COMMAND_ABOVE
>>
>> Hope this helps.
>>
>> - Aaron
>> _______________________________________________
>> clue mailing list
>> clue at cluedenver.org
>> http://cluedenver.org/mailman/listinfo/clue
> _______________________________________________
> clue mailing list
> clue at cluedenver.org
> http://cluedenver.org/mailman/listinfo/clue
More information about the clue
mailing list