Hi there,

Multiple times now I have made the mistake of trying to run an 
Archlinux-config script without the appropriate permissions. Every 
script gives some other error, all quite unlogical. For example; running 
mkinitrd gives me 'ERROR: All of your loopback devices are in use!', 
most scripts in /etc/rc.d give a 'Fail' without any explanation while 
others spit out permission problems.

Wouldn't it be an idea to standardize the way these scripts check for 
permissions? For example; a script might initialize a variable 
REQ_PERMS='group:root'; or REQ_PERMS='user:root'. A simple function in 
/etc/rc.d/functions could then stop the script more gracefully saying 
'Only the root user may run this script'. It is ofcourse no security 
matter; but simply a way to standardize the errors given to the user.

Suggestions/comments/ideas welcome :)

--
Sjon

http://sjon.hortensius.net/

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to