On Tue, 2005-09-27 at 07:52 +0000, randhir phagura wrote:
> I will have to learn bash scripting to sufficient degree to be able to 
> become 'root' in the middle of an automating install script, at the 'make 
> install' stage for each package. As of now, I don't even know if it is 
> possible at all.


I suggest looking into the program sudo, which provides a relatively
secure way of allowing regular users to run specific commands as root,
requiring only their own password for authentication, not the root
password. We use it extensively at work for development scripts that
need to do things like create/import a database (must be user oracle),
or modify /etc/services.

Caveat: I've never tried installing it on my home machines, so I can't
comment on what's involved. It should, however, allow you to authorise
certain commands to be run as root, without requiring a password.

Warning: If not configured with care and thought, sudo is a gaping
security hole in your system. Until it was cleaned up, our sudo config
at work had dozens of ways of gaining root access, some of them trivial,
others quite subtle.

Simon.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to