LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-08-2005, 07:54 AM   #1
muzzamil.luqman
LQ Newbie
 
Registered: Dec 2005
Distribution: fedora
Posts: 19

Rep: Reputation: 0
why root can't use screensaver?


why can't root use screensaver
coz. of that i am unable to lock my desktop.

it says can't start xscreensaver deamon, btw whats this???
 
Old 12-08-2005, 08:13 AM   #2
vmlinuz101
Member
 
Registered: Mar 2005
Location: Ireland
Distribution: LFS, SuSE, Debian, gentoo
Posts: 93

Rep: Reputation: 15
i take it you're using gnome. basically the idea behind this is that you shouldn't be logged in as root user, at least not in a window manager or desktop environment. kde does allow this but its probably a bad idea. if you want to log in as root under your normal user, just do an su - and put in your root password. afterwards type logout to exit
 
Old 12-08-2005, 08:18 AM   #3
muzzamil.luqman
LQ Newbie
 
Registered: Dec 2005
Distribution: fedora
Posts: 19

Original Poster
Rep: Reputation: 0
is it just not recommended to use X as root
or one can't do it in anyways???
I guess there must be some way around!
 
Old 12-08-2005, 08:25 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by vmlinuz101
i take it you're using gnome. basically the idea behind this is that you shouldn't be logged in as root user, at least not in a window manager or desktop environment. kde does allow this but its probably a bad idea. if you want to log in as root under your normal user, just do an su - and put in your root password. afterwards type logout to exit
On most distros KDM will not allow root to login from its interface, so its not a KDEs fault but the distro maintainers for changing KDMs default configuration. GDM can be configured in the same way but some distros seem to be a bit slack about this issue.
 
Old 12-12-2005, 04:50 AM   #5
muzzamil.luqman
LQ Newbie
 
Registered: Dec 2005
Distribution: fedora
Posts: 19

Original Poster
Rep: Reputation: 0
Talking

At last i succeeded in finding the way


After login as root in X Window, open a terminal window and issue the following.

xhost +
su

Substitute with any user account name on your Linux machine. For example,

su luqman

Then issue the following:

xscreensaver &

finally lock your screen
 
Old 12-12-2005, 05:55 AM   #6
rdk
LQ Newbie
 
Registered: Sep 2005
Location: Croatia
Distribution: Gentoo, Slack
Posts: 6

Rep: Reputation: 0
Basiclly, there is no need to run xscreensaver as root, couse obviusly U should not even be logged in X as root, little less leave your station loged as root for time needed for screen saver to start, as it is the large security issue

Why not run X as root?

Well, as you may or my not already know, X is quite a big "application", so what if it had a minor bug that would let's say overwrite some conf or other files? Running as root would enable the application to do such a thing, while running as ordinary user it would not be able to do so.
Or even worst, if it had a security bug that allows remote logins, somebody could take control of root account directly insteda of plain user account ( which is bad enough already )

Don't use the name of ROOT in vain...
( Quote from kernel README )
 
Old 12-12-2005, 06:49 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by muzzamil.luqman
At last i succeeded in finding the way


After login as root in X Window, open a terminal window and issue the following.

xhost +
su

Substitute with any user account name on your Linux machine. For example,

su luqman

Then issue the following:

xscreensaver &

finally lock your screen
I am not sure why you need to login to X as root? Anything that you need to do as root can be done from your user account. Logging in as admin is what causes most problems on Windows and by doing the same thing, you are not making use of the Linux/Unix security model and putting yourself at risk from crackers and your own mistakes. Its your machine and you can do what you like, but hopefully it won't be something you will regret.
 
  


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
enable screensaver when loged as root mlu Linux - Software 1 06-15-2005 02:22 AM
screensaver JROCK1980 Linux - Software 3 05-30-2004 02:45 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
ScreenSaver k_ranju Linux - Newbie 1 07-25-2003 08:09 AM
screensaver as root window on startup contrasutra Linux - Software 3 04-30-2003 10:46 PM


All times are GMT -5. The time now is 07:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration