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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-24-2012, 10:35 AM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 2
Rep: 
|
Init
What is the difference between restarting from terminal and doing the same by clicking the restart button??...i mean wen as a guest user i cant use"init 6"...but its completely legal to restart by clicking the button
|
|
|
04-24-2012, 11:08 AM
|
#2
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Only root is allowed to change runlevels using the init command. Restarting the system with a GUI button is a whole different thing. To do that you first must be allowed to do that. On most distributions this is done by adding your user to the power or powerdev group. If you are allowed to do this the shutdown dialog sends the command to do this to the DBus daemon, which initiates the restart. This can also be done from within your own programs or from a shell, have a look here: http://blog.sandipb.net/2010/11/02/r...ne-using-dbus/
|
|
1 members found this post helpful.
|
04-24-2012, 11:14 AM
|
#3
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep: 
|
It is a matter of privileges
restart button privileges can be changed from GUI of desktop settings.
|
|
|
04-24-2012, 11:33 AM
|
#4
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep: 
|
Quote:
Originally Posted by TobiSGD
|
The ubuntu documentation linked to in the above is really simple.
|
|
|
04-28-2012, 09:34 AM
|
#5
|
LQ Newbie
Registered: Apr 2012
Posts: 2
Original Poster
Rep: 
|
thank u all for ur replies....!!
|
|
|
All times are GMT -5. The time now is 06:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|