Re: use sudo without having to type password?



On 20 Dec 2005 14:01:50 GMT, Peter Jensen <usenet@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Crashdamage wrote:

>>> Is there someway to use suo without having to type the password each
>>> time?
>>
>> You mean 'su'? 'sudo'?

> A typo, but the correct question is in the subject line, which you
> apparently didn't read.

Aww, I did, I was jus' foolin' with him a little...

>> Anyway, it's such a bad idea to do so, I'm not going to tell you how,
>> or even if there is a way. Hopefully, no one else will either.

> There are lots of very valid reasons for having password-less sudo
> commands available. For instance, I run slrnpull through it,...

Pardon my ignorance, I've never used or needed slrnpull, but I'm curious
- is there any particular reason it can't be run as a user?

>...and my parents has the option of restarting the network interface
> on the server I have at their place, with the click of an icon on
> their desktop (they're not exactly computer literate).

Yeah, there are certain times...clearly I posted without my brain fully
engaged...

>> If you have to do anything as root, you should have to type a password
>> to do it, simple as that.

> Conditioning a person to typing a password every time they're prompted
> is not always wise. It should stand as a warning that they're about to
> do something that they need to think about first. Far from all commands
> need that kind of thought.

Ah, back to my (poorly made) point. My contention was that if you need
to (almost always) be root to do something, you *should* get a warning,
you *should* think about it first, and (nearly) all commands that must
be run as root *should* require that kind of thought. As far as that
goes, I still stand by it.

>> If you really insist on using such poor security policy and are too
>> lazy to type a friggin' password, you should at least have to learn to
>> use Google for yourself to do it.

> Your statement is nothing but elitism. A proper answer would be to
> first describe the pros, cons, and alternatives, after which you provide
> an answer to the question actually asked.

You're basically right - guilty as charged.

--
Registered Linux user #266531
.



Relevant Pages

  • Re: [kde-linux] KDE 4 and monitor powering off.
    ... I changed it so that it would run as root since I have to ... I have sudo configured so my normal user has very limited access (some ... commands, with specific parameters. ... The admin user has full passwordless access to do everything root could ...
    (KDE)
  • Re: Change Permissions on a new hard drive to allow write...Problem Solved
    ... Please tell how I could have solved the problem without logging in as ... You'd use sudo or one of its graphical derivatives, ... Those three commands could have been used to do everything you did ... logging in as root. ...
    (Ubuntu)
  • Re: [opensuse] sudoers problem
    ... specific commands only, then gave the ALL commands privilege. ... Even when given root privilege for all commands, ... The script works from root and under sudo but i ...
    (SuSE)
  • Re: Root access loggin
    ... Subject: Root access loggin ... commands with sudo assume that the user actually knows what commands ... Sudo wouldn't be any help here cause I would need to pre approve ... the wheel group and using visudo to grant wheel access to everything ...
    (freebsd-questions)
  • Re: [opensuse] Need help
    ... I don't want to give them sudo. ... The first line creates a command alias "APACHE_CTL" that is ... to a few more commands, ... Warning: undeclared User_Alias `APACHE_CTL' referenced near line 7 ...
    (SuSE)