Re: why doesn't shutdown work ??
Brought to you by:
captnmark
|
From: Frank M. <be...@vi...> - 2010-05-28 19:31:04
|
On Sat, 29 May 2010 00:12:50 +0530 "J. Bakshi" <bak...@gm...> wrote: > On Fri, 28 May 2010 13:26:46 -0400 > Frank McCormick <be...@vi...> wrote: > > > On Fri, 28 May 2010 22:29:21 +0530 > > "J. Bakshi" <bak...@gm...> wrote: > > > > > On Fri, 28 May 2010 10:29:02 +0530 > > > MohanSai <k_m...@ya...> 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<be...@vi...> |