Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Why not just comment out the offending lines' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Why not just comment out the offending lines
Authored by: i_am_pi on May 01, '02 09:39:51AM

In pico, hit Ctl-W Ctl-T Line number enter, then put a # sign or a ": " (colon space, no quotes) at the beginning of the offending lines. Then to undo, just take the comments off.

Pi
For Great Justice|ecitsuJ taerG roF



[ Reply to This | # ]
also
Authored by: i_am_pi on May 01, '02 09:42:18AM

"sudo su -" is a little redundant. Try sudo tcsh or just su - to become root. You'll need to enter your root password for the simple su -.

Pi
For Great Justice|ecitsuJ taerG roF



[ Reply to This | # ]
Re: also
Authored by: sjk on May 01, '02 04:15:47PM
Or sudo -s.


[ Reply to This | # ]
sudo & root
Authored by: pecosbill on May 01, '02 06:24:43PM

To run a shell as root, you can also sudo -s



[ Reply to This | # ]
but it still works ...
Authored by: norby on Nov 14, '02 07:57:23PM

Actually, sudo su - is probably a habit for many people (it is for myself) and can be problematic when I'm on a system I don't actually have sudo on, but have the other user's password. There is always more than one way to do it, as they say. (And no, this does not require your root password - unless you have somehow changed your sudo or su so that UID 0 can't su to root w/o a passwd.)



[ Reply to This | # ]