root
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
root [2015/12/28 00:51] – admin | root [2015/12/28 03:18] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====root===== | =====root===== | ||
+ | For years I had been using an ultra simple program to allow root access without a password. It was called **root**(1) and in spite of a couple of bugs which I'd mainly fixed I generally just liked it. So easy to set up - just put the allowed uid's into ''/ | ||
+ | |||
+ | Well blow me down, I lost the sources. Not on my backups. Not in cvs. What the heck had I done with it? No good googling - ' | ||
+ | | ||
+ | So I re-wrote it from scratch and (apologies to the original author), its a darn sight better now (it even evaluates its arguments correctly if they contain spaces, which the old ' | ||
+ | |||
+ | Why not **sudo**(1)? | ||
+ | | ||
+ | Here it is. To compile just do this as root: | ||
+ | |||
+ | cc -o root root.c | ||
+ | chown root root | ||
+ | chmod 4755 root | ||
+ | cp root / | ||
+ | |||
+ | Then put your allowed uids (use 'id -u') into ''/ | ||
+ | chown root / | ||
+ | chmod 600 / | ||
+ | |||
+ | Here's the source: {{ root.c }}. No I won't post binaries, you really shouldn' | ||
+ | |||
+ |
root.1451289119.txt.gz · Last modified: 2015/12/28 00:51 by admin