LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-24-2012, 10:35 AM   #1
ratornado
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
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
 
Old 04-24-2012, 11:08 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
Old 04-24-2012, 11:14 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
It is a matter of privileges
restart button privileges can be changed from GUI of desktop settings.
 
Old 04-24-2012, 11:33 AM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
The ubuntu documentation linked to in the above is really simple.
 
Old 04-28-2012, 09:34 AM   #5
ratornado
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
thank u all for ur replies....!!
 
  


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
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 07:51 AM
/sbin/init: Kernel panic - not syncing: Attempted to kill init! jalejo08 Linux - Kernel 7 07-02-2009 02:16 PM
kernal panic no init found try passing init option to kernel m2azer Linux - General 3 11-08-2007 02:51 PM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-19-2004 12:10 AM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 11:18 PM

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

All times are GMT -5. The time now is 06:22 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