Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOW: Lock Xscreensaver as root.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Gobbo
n00b
n00b


Joined: 29 Apr 2004
Posts: 20

PostPosted: Mon May 17, 2004 9:51 pm    Post subject: HOW: Lock Xscreensaver as root. Reply with quote

To Lock XScreensaver as root:
1. Create .xscreensaver file as root and make sure locking=true
2. Copy .xscreensaver to the unpriveledged user's home folder
3. Log root out
4. Login as unpriveledged user that has root's .xscreensaver file
5. Switch v/cs without logging unpriveledged user out
6. Login as root on the alternate v/c
7. Start kdm,gdm,xdm etc...
8. Login as root again
9. Wait for screensaver to start so it will auto-lock or click "Lock screen"
10. Now when xscreensaver locks you will need the unpriveledged user's password to unlock so I would consider making unpriveledged user's and root's password alike.
11. If all is well it should say unpriveledged user's screen is locked, but after unlocking you will be returned to root's desktop.

I am an XFCE-4 user under root who want x locked so that's how I did it.
_________________
There are 10 kinds of people in the world, those who understand binary and those who don't.
(Stolen from ThinkGeek)
[img:b2d0e71abb]http://starzaki.eu.org/~rael/kdepl/kdeusersmall.php?kdeuserid=1607[/img:b2d0e71abb]
Back to top
View user's profile Send private message
x20vmk4x
n00b
n00b


Joined: 23 Aug 2003
Posts: 40

PostPosted: Mon May 17, 2004 10:18 pm    Post subject: Reply with quote

i was under the impression that running an X session as root is bad security, and i KNOW that having the root password the same as a users isnt the best thing, either. why not just run x as a user and have an {a|e|x}term running su -? that seems more secure to me.
Back to top
View user's profile Send private message
Gobbo
n00b
n00b


Joined: 29 Apr 2004
Posts: 20

PostPosted: Mon May 17, 2004 10:26 pm    Post subject: Reply with quote

I'm lazy... :rolleyes:
_________________
There are 10 kinds of people in the world, those who understand binary and those who don't.
(Stolen from ThinkGeek)
[img:b2d0e71abb]http://starzaki.eu.org/~rael/kdepl/kdeusersmall.php?kdeuserid=1607[/img:b2d0e71abb]
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Mon May 17, 2004 10:47 pm    Post subject: Reply with quote

It's hard to prevent people from their own stupidity, but I'm really optimistic you are a smart guy and stop using xfce4 as root from now on.
Back to top
View user's profile Send private message
Gobbo
n00b
n00b


Joined: 29 Apr 2004
Posts: 20

PostPosted: Mon May 17, 2004 11:43 pm    Post subject: Reply with quote

Thanks, and OK
_________________
There are 10 kinds of people in the world, those who understand binary and those who don't.
(Stolen from ThinkGeek)
[img:b2d0e71abb]http://starzaki.eu.org/~rael/kdepl/kdeusersmall.php?kdeuserid=1607[/img:b2d0e71abb]
Back to top
View user's profile Send private message
verbatim
Apprentice
Apprentice


Joined: 13 Mar 2003
Posts: 223

PostPosted: Tue May 18, 2004 2:08 am    Post subject: Reply with quote

Honestly I have to lean toward Earthwings on this one...

and well, to answer the question in your sig... it's past this stage..
Back to top
View user's profile Send private message
Anior
Guru
Guru


Joined: 17 Apr 2003
Posts: 317
Location: European Union (Stockholm / Sweden)

PostPosted: Tue May 18, 2004 7:47 am    Post subject: Reply with quote

Remember that xlock doesn't catch X escape keys like ctrl + backspace and ctrl + Fsomething. Which means that anyone who passes by can get access if you have started X from the terminal. Use xdm/gdm/kdm or "exec startx" if you want security.


And yea, using root as a default user is to beg for a borked system. Use su and sudo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum