LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2017, 12:26 PM   #31
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194

Quote:
Originally Posted by mtsoule View Post
perhaps safest thing is SU. but, I need to test if I SU to Mike from Root, do I have mikes prevs, or root prevs? I would assume Mikes, otherwise there would be no point.
Perhaps? It is the best option.

su Mike
"no hyphen" will keeps your existing environment

su - Mike
"hyphen" will create a new environment with the settings of the actual user, not your own.

The answer your question is 'su - Mike' form within root.
I would first let them know that you are going to do this just to be upfront about it.
 
Old 06-13-2017, 12:52 PM   #32
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by AwesomeMachine View Post
su stands for switch user. It can be any user if changing from root to user. I don't think you need a pw to switch from root to a regular user. And when you have a shell run as a user, it doesn't have root privileges. It has that user's privileges.

If you want a certain users gnome session, I don't think that is possible in the strict sense. You might be able to examine some things, but without the pw it seems hopeless, because gdm3 greeter has no way to log in as a user with the root pw.

Unless perhaps you wee to for instance launch gnome as root, switch to the user in a terminal, and launch say thunderbird from the user shell. If you're persistent enough there is always some way. or perhaps
Code:
$ su -user startx &
might bypass the login screen.
getting a gnome desktop as user -mike for instance might be possible with xnest or Xephyr ( eg DISPLAY=:X su -user gnome-session&) where :X is the display # of the xnest/Xephyr window
 
Old 06-13-2017, 03:27 PM   #33
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
You can share X with multiple users.

$ xhost local:
(as the user who started X)

or

$ xhost local:user
(user specific access, in addition to the one who started X)

and

$ xhost

to list

$ xauth list

For more of the magic behind the scenes. No real need to restart X or start X in X with Xephyr or Xnest. Although I find Xephyr + Xdmx to be useful for really tall xterms without rotating the monitor. Not so good for editing though as it's been untouched too long and uses old input methods.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Root password not accepted after logging in. herakles_14 Mageia 7 11-29-2015 09:25 AM
GNOME: Gain privileges using current user's password instead of root's password maxkukartsev Fedora 5 02-10-2012 10:46 AM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
Logging On As Root User BACTRATE Mandriva 6 02-16-2004 11:48 AM
Logging in as root with incorrect password! Colonel Panic Linux - General 2 08-03-2001 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration