SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
You'd have to sudo it if you aren't su. It requires kernel permission levels that users simply don't have.
That said, I just push the power button on my computer. On both my laptop and my desktop, the kernel intercepts that button push and shuts down properly. I have no reason to suspect that it wouldn't work for you, either.
Visudo is actually vi, so you've to learn how to use vi.
Basically when you enter your are in "read-mode".
Try moving with the arrows, if you can't, use h,j,k,l to move the cursor.
Place at the character you want to remove (the #) and press x to delete the character.
If you need to input some text, press the i key, type what you want and go back to read mode using ESC key.
To save press
:w will write the file, :q will quit, and if you need to quit without saving, use, :q!