Re: [newbie] shutdown problem fixed
On Tue, 13 Jul 1999, you wrote: there isn't a single difference between su - and loging in as root (ok one the utmp entry, but that has nothing todo with anything major) Well, MY experience has been that there are some applications that can ONLY be run as "root." Editing system files appears to be one of those functions. I may not know much about theory and all that, but I *do* know that in the past when I've tried to run system commands as an SU-ed user, it wouldn't let me. *shrug* -- John Aldrich COL Tech Support === Chattanooga Online Internet 423-267-8867
Re: [newbie] shutdown problem fixed
On Tue, 13 Jul 1999, John Aldrich wrote: On Tue, 13 Jul 1999, you wrote: there isn't a single difference between su - and loging in as root (ok one the utmp entry, but that has nothing todo with anything major) Well, MY experience has been that there are some applications that can ONLY be run as "root." Editing system files appears to be one of those functions. I may not know much about theory and all that, but I *do* know that in the past when I've tried to run system commands as an SU-ed user, it wouldn't let me. *shrug* -- John Aldrich COL Tech Support === Chattanooga Online Internet 423-267-8867 For a program to run as root and not when su - root, it would have to step thru parent pid's looking specificly for su (it could test the parent pids uid, they all eventualy lead to root), which is posible but ugly. As for editing system files, I am quite certain the filesystem drivers do not check for su as a parent pid, so when editing files if your root or su - root it will write the file. So if you do find a program that does this let me know i'd like a look at it.
Re: [newbie] shutdown problem fixed
At 12:20 13/07/99 -0400, you wrote: On Tue, 13 Jul 1999, you wrote: For a program to run as root and not when su - root, it would have to step thru parent pid's looking specificly for su (it could test the parent pids uid, they all eventualy lead to root), which is posible but ugly. As for editing system files, I am quite certain the filesystem drivers do not check for su as a parent pid, so when editing files if your root or su - root it will write the file. So if you do find a program that does this let me know i'd like a look at it. Okone I can give you right off the top is "timed" It will NOT run as SuperUser, but it WILL run as "root." It comes back with "timed command not found." This is from a text-mode prompt, not a window prompt, just a standard shell prompt. However, I run that logged in as "root" and it works just fine. When you do "su" you don't always get the PATH environment of root (depending on the system) The above error was because "timed" is not in your path - not because you cannot run it. Try "/usr/sbin/timed" instead. ttfn nick@nexnix -- John Aldrich COL Tech Support === Chattanooga Online Internet 423-267-8867
Re: [newbie] shutdown problem fixed
John Aldrich wrote: Okone I can give you right off the top is "timed" It will NOT run as SuperUser, but it WILL run as "root." It comes back with "timed command not found." This is from a It will still run just fine as su, but you need to specify the path to it. When you su, it doesn't run the normal login files for root, which means that anything that's in root's path, but not in your path, won't be visible. There is an option to su to change this behavior, but I don't remember what it is. man su would tell you, though. -- Dan Brown, KE6MKS, [EMAIL PROTECTED] Meddle not in the affairs of dragons, for you are crunchy and taste good with ketchup.
Re: [newbie] shutdown problem fixed
On Tue, 13 Jul 1999, John Aldrich wrote: Okone I can give you right off the top is "timed" It will NOT run as SuperUser, but it WILL run as "root." It comes back with "timed command not found." This is from a text-mode prompt, not a window prompt, just a standard shell prompt. However, I run that logged in as "root" and it works just fine. You did just "su", not "su -". The difference is that "su -" reruns the login scripts, etc., so you get the right PATH for root. timed is in /usr/sbin, which is in the PATH of root, but not the PATH of normal users. Either do "su -", or stay with "su" and run /usr/sbin/timed rather than just timed. LLaP bero
Re: [newbie] shutdown problem fixed
On Tue, 13 Jul 1999, you wrote: When you do "su" you don't always get the PATH environment of root (depending on the system) The above error was because "timed" is not in your path - not because you cannot run it. Try "/usr/sbin/timed" instead. Ahh...Ok. That makes a bit of sense there... :-) I'm sure there are other apps that won't run for that reason. -- John Aldrich COL Tech Support === Chattanooga Online Internet 423-267-8867
Re: [newbie] shutdown problem fixed
On Tue, 13 Jul 1999, you wrote: You did just "su", not "su -". The difference is that "su -" reruns the login scripts, etc., so you get the right PATH for root. Ah. I just learned something new. :-) I didn't know about "su -" Thanks. :-) -- John Aldrich COL Tech Support === Chattanooga Online Internet 423-267-8867
Re: [newbie] shutdown problem fixed
Yep. If you've logged in as "root" and not SU-ed to root (two different things... there are some things that you just can't do as "SU" that you can do as "root") It very well may be time to reinstall. I thought I was at that point last week, but with a little help from the author of KMail, I managed to salvage my install w/o having to log back in. 'Course now I have a couple of half-installed X-based email clients... Oh, well... :-) John - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 11, 1999 5:22 PM Subject: Re: [newbie] shutdown problem fixed John Aldrich wrote: Log in as "root" instead of a normal user. Try that instead of SU. John I did log on as "root" It insists that my mtab and fstab files/Dir's are gone... I'm going to start over again. Axalon Thank you for your help.But it's time to clean-up my mistakes and start new, I will be doing the partitions the way we talked about, however, my back-ups are on my Network to a Back-up drive Onstream 30gig...I just didn't get that far during my 6.0 install Oh I'm sorry Thank you too, John. This has got to be one of the greatest sites there is. I owe you guys. I'll be back! Rhich "The Phoneless Guy" Icq 8150164 - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 11, 1999 7:54 AM Subject: Re: [newbie] shutdown problem fixed John Aldrich wrote: Are you editing the file as "root"? If not, that's a "system file" and only "root" can edit it. - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 10, 1999 6:48 PM Subject: Re: [newbie] shutdown problem fixed At the # I type SU? I believe (or it likes me to think I am) SU. It must be SU because if I don't type that I can't even use MC, but once in MC all I can do is look, can't touchtried that when Axalon suggested removing the -p in SShalt, but it won't let me save the changes. Axalon wrote: On Wed, 30 Jun 1999, Flight16 wrote: For anybody else having the problem I was of a huge error crashing their system whenever the shutdown script tried to halt, it is because of the power off command, like Axalon said, but the specific problem comes from the -p parameter that tries to power down your pc. This command is near the end in SShalt script.. Just look in your /etc/rc.d/rc0.d directory, and edit one of the last lines which contain "halt -i -d -p" so that it doesn't contain the p, and is just "halt -i -d" and any other parameters you used with it. Hope this helps somebody else out there. See ya. Flight16 Found it !! but it won't let me save the changes.. can I rename it?
Re: [newbie] shutdown problem fixed
On Mon, 12 Jul 1999, John Aldrich wrote: Yep. If you've logged in as "root" and not SU-ed to root (two different things... there are some things that you just can't do as "SU" that you can do as "root") It very well may be time to reinstall. I thought I was at that point last week, but with a little help from the author of KMail, I managed to salvage my install w/o having to log back in. 'Course now I have a couple of half-installed X-based email clients... Oh, well... :-) John there isn't a single difference between su - and loging in as root (ok one the utmp entry, but that has nothing todo with anything major) - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 11, 1999 5:22 PM Subject: Re: [newbie] shutdown problem fixed John Aldrich wrote: Log in as "root" instead of a normal user. Try that instead of SU. John I did log on as "root" It insists that my mtab and fstab files/Dir's are gone... I'm going to start over again. Axalon Thank you for your help.But it's time to clean-up my mistakes and start new, I will be doing the partitions the way we talked about, however, my back-ups are on my Network to a Back-up drive Onstream 30gig...I just didn't get that far during my 6.0 install Oh I'm sorry Thank you too, John. This has got to be one of the greatest sites there is. I owe you guys. I'll be back! Rhich "The Phoneless Guy" Icq 8150164 - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 11, 1999 7:54 AM Subject: Re: [newbie] shutdown problem fixed John Aldrich wrote: Are you editing the file as "root"? If not, that's a "system file" and only "root" can edit it. - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 10, 1999 6:48 PM Subject: Re: [newbie] shutdown problem fixed At the # I type SU? I believe (or it likes me to think I am) SU. It must be SU because if I don't type that I can't even use MC, but once in MC all I can do is look, can't touchtried that when Axalon suggested removing the -p in SShalt, but it won't let me save the changes. Axalon wrote: On Wed, 30 Jun 1999, Flight16 wrote: For anybody else having the problem I was of a huge error crashing their system whenever the shutdown script tried to halt, it is because of the power off command, like Axalon said, but the specific problem comes from the -p parameter that tries to power down your pc. This command is near the end in SShalt script.. Just look in your /etc/rc.d/rc0.d directory, and edit one of the last lines which contain "halt -i -d -p" so that it doesn't contain the p, and is just "halt -i -d" and any other parameters you used with it. Hope this helps somebody else out there. See ya. Flight16 Found it !! but it won't let me save the changes.. can I rename it?
Re: [newbie] shutdown problem fixed
Are you editing the file as "root"? If not, that's a "system file" and only "root" can edit it. - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 10, 1999 6:48 PM Subject: Re: [newbie] shutdown problem fixed Axalon wrote: On Wed, 30 Jun 1999, Flight16 wrote: For anybody else having the problem I was of a huge error crashing their system whenever the shutdown script tried to halt, it is because of the power off command, like Axalon said, but the specific problem comes from the -p parameter that tries to power down your pc. This command is near the end in SShalt script.. Just look in your /etc/rc.d/rc0.d directory, and edit one of the last lines which contain "halt -i -d -p" so that it doesn't contain the p, and is just "halt -i -d" and any other parameters you used with it. Hope this helps somebody else out there. See ya. Flight16 Found it !! but it won't let me save the changes.. can I rename it?
Re: [newbie] shutdown problem fixed
Log in as "root" instead of a normal user. Try that instead of SU. John - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 11, 1999 7:54 AM Subject: Re: [newbie] shutdown problem fixed John Aldrich wrote: Are you editing the file as "root"? If not, that's a "system file" and only "root" can edit it. - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 10, 1999 6:48 PM Subject: Re: [newbie] shutdown problem fixed At the # I type SU? I believe (or it likes me to think I am) SU. It must be SU because if I don't type that I can't even use MC, but once in MC all I can do is look, can't touchtried that when Axalon suggested removing the -p in SShalt, but it won't let me save the changes. Axalon wrote: On Wed, 30 Jun 1999, Flight16 wrote: For anybody else having the problem I was of a huge error crashing their system whenever the shutdown script tried to halt, it is because of the power off command, like Axalon said, but the specific problem comes from the -p parameter that tries to power down your pc. This command is near the end in SShalt script.. Just look in your /etc/rc.d/rc0.d directory, and edit one of the last lines which contain "halt -i -d -p" so that it doesn't contain the p, and is just "halt -i -d" and any other parameters you used with it. Hope this helps somebody else out there. See ya. Flight16 Found it !! but it won't let me save the changes.. can I rename it?
Re: [newbie] shutdown problem fixed
John Aldrich wrote: Log in as "root" instead of a normal user. Try that instead of SU. John I did log on as "root" It insists that my mtab and fstab files/Dir's are gone... I'm going to start over again. Axalon Thank you for your help.But it's time to clean-up my mistakes and start new, I will be doing the partitions the way we talked about, however, my back-ups are on my Network to a Back-up drive Onstream 30gig...I just didn't get that far during my 6.0 install Oh I'm sorry Thank you too, John. This has got to be one of the greatest sites there is. I owe you guys. I'll be back! Rhich "The Phoneless Guy" Icq 8150164 - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 11, 1999 7:54 AM Subject: Re: [newbie] shutdown problem fixed John Aldrich wrote: Are you editing the file as "root"? If not, that's a "system file" and only "root" can edit it. - Original Message - From: Rhichard Barth Family [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 10, 1999 6:48 PM Subject: Re: [newbie] shutdown problem fixed At the # I type SU? I believe (or it likes me to think I am) SU. It must be SU because if I don't type that I can't even use MC, but once in MC all I can do is look, can't touchtried that when Axalon suggested removing the -p in SShalt, but it won't let me save the changes. Axalon wrote: On Wed, 30 Jun 1999, Flight16 wrote: For anybody else having the problem I was of a huge error crashing their system whenever the shutdown script tried to halt, it is because of the power off command, like Axalon said, but the specific problem comes from the -p parameter that tries to power down your pc. This command is near the end in SShalt script.. Just look in your /etc/rc.d/rc0.d directory, and edit one of the last lines which contain "halt -i -d -p" so that it doesn't contain the p, and is just "halt -i -d" and any other parameters you used with it. Hope this helps somebody else out there. See ya. Flight16 Found it !! but it won't let me save the changes.. can I rename it?
Re: [newbie] shutdown problem fixed
On Wed, 30 Jun 1999, Flight16 wrote: For anybody else having the problem I was of a huge error crashing their system whenever the shutdown script tried to halt, it is because of the power off command, like Axalon said, but the specific problem comes from the -p parameter that tries to power down your pc. This command is near the end in SShalt script.. Just look in your /etc/rc.d/rc0.d directory, and edit one of the last lines which contain "halt -i -d -p" so that it doesn't contain the p, and is just "halt -i -d" and any other parameters you used with it. Hope this helps somebody else out there. See ya. Flight16 Ah yes, an even better idea then you don't have to worry about a phone ringing and missing the chance to power off manualy. thanks guy..
Re: [newbie] shutdown problem fixed
BTW, on my machine (RedHat 6.0) it was not called SShalt, I believe it was calles S0halt. :-) I took a guess that it was the right script and opened it with joe. It was. :-) - Original Message - From: Axalon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 28, 2000 1:55 PM Subject: Re: [newbie] shutdown problem fixed On Wed, 30 Jun 1999, Flight16 wrote: For anybody else having the problem I was of a huge error crashing their system whenever the shutdown script tried to halt, it is because of the power off command, like Axalon said, but the specific problem comes from the -p parameter that tries to power down your pc. This command is near the end in SShalt script.. Just look in your /etc/rc.d/rc0.d directory, and edit one of the last lines which contain "halt -i -d -p" so that it doesn't contain the p, and is just "halt -i -d" and any other parameters you used with it. Hope this helps somebody else out there. See ya. Flight16 Ah yes, an even better idea then you don't have to worry about a phone ringing and missing the chance to power off manualy. thanks guy..
Re: [newbie] shutdown problem fixed
Hmm...really? I didn't know you could edit a symlinkOTOH, I suppose you can, now that I think about it... :-) - Original Message - From: Axalon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 30, 1999 8:35 PM Subject: Re: [newbie] shutdown problem fixed On Wed, 30 Jun 1999, John Aldrich wrote: BTW, on my machine (RedHat 6.0) it was not called SShalt, I believe it was calles S0halt. :-) I took a guess that it was the right script and opened it with joe. It was. :-) those are all symlinks anyway the true filename is /etc/rc.d/init.d/halt y