Re: why doesn't shutdown work ??

Frank McCormick <[email protected]>
Newsgroups gmane.comp.window-managers.icewm.user
Message-ID <[email protected]>
On Sat, 29 May 2010 00:12:50 +0530
"J. Bakshi" <[email protected]> wrote:

> On Fri, 28 May 2010 13:26:46 -0400
> Frank McCormick <[email protected]> wrote:
> 
> > On Fri, 28 May 2010 22:29:21 +0530
> > "J. Bakshi" <[email protected]> wrote:
> > 
> > > On Fri, 28 May 2010 10:29:02 +0530
> > > MohanSai <[email protected]> wrote:
> > > 
> > > > Hi Bakshi! 
> > > > i'm not an expert at linux. there are two inittab files on my
> > > > ubuntu system. 
> > > > 1) /etc/inittab
> > > > 2) /usr/share/sysvinit/inittab
> > > > which file needs to be appended with the line you mentioned?
> > > > "shutdown -a /etc/shutdown.allow"
> > > > could you specify which file ? 
> > > > Also, will this also work for reboot and how about locking the
> > > > system.
> > > > 
> > > 
> > > Hello,
> > > 
> > > My box is based on debian. Generally /etc/inittab is the file
> > > where all this modification can be done. Even in rpm based
> > > distro. So it should be the same in ubuntu which is also based
> > > on debian
> > > 
> > 
> >   I tried it on my box (Debian testing) and all I got was an error
> > message saying tags can only be 4 characters long. (Line added
> > to /etc/inittab)
> > 
> > 
> > 
> 
> How the entry look like ?
> 
> It should be
> 
> ````````````
> ca::ctrlaltdel:/sbin/shutdown -a -t3 -r now
> ```````````````````````
> 
> Create a file named shutdown.allow in /etc. The shutdown.allow file
> should list the usernames of any users who are allowed to shutdown
> the system using Ctrl-Alt-Del . The format of the shutdown.allow
> file is a list of usernames, one per line
> 
> Please check if this helps.


But this was the original suggestion which doesn't work obviously.

> Modify inittab with 
> 
> `  `   `   `
> shutdown -a /etc/shutdown.allow
> 

I will try the new one. Thanks


-- 
Frank<[email protected]>

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.