From: Geoff H. <geo...@gm...> - 2009-03-16 12:34:36
|
Hi All, Is there a way to get Devmon to run as a normal user (Hobbit user)? For me, even if I change permissions on the /var/lock/subsys folders, it will not let it run as a normal user. I get the following error: touch: cannot touch `/var/lock/subsys/devmon': Permission denied Reason I want this is so when Devmon goes purple, I can have hobbit (as the hobbit user with group users), run the command to restart the daemon automatically instead of scheduling restart cron jobs. Thanks. Geoff Hallford ################################## Permissions: *AS ROOT* bigbrother:/var/lock # whoami root bigbrother:/var/lock # ls -l total 0 drwxrwxr-t 4 root uucp 96 Mar 9 09:13 . drwxr-xr-x 16 root root 408 Mar 9 08:45 .. drwxr-xr-x 2 root root 48 Jul 10 2008 dmraid drwxrw-rw- 3 root users 208 Mar 16 08:25 subsys bigbrother:/var/lock # cd subsys/ bigbrother:/var/lock/subsys # ls -l total 0 drwxrw-rw- 3 root users 208 Mar 16 08:25 . drwxrwxr-t 4 root uucp 96 Mar 9 09:13 .. -rwxrw-rw- 1 root users 0 Mar 15 09:15 sec.pl -rwxrw-rw- 1 root users 0 Oct 23 14:00 smbfs -rwxrw-rw- 1 root users 0 Mar 15 09:15 snmptrapd -rwxrw-rw- 1 root users 0 Mar 15 09:15 snmptt drwxrw-rw- 2 root users 48 Sep 9 2005 sysconfig *AS HOBBIT* hobbit@bigbrother:/var/lock> whoami hobbit hobbit@bigbrother:/var/lock> ls -l total 0 drwxr-xr-x 2 root root 48 2008-07-10 13:18 dmraid drwxrw-rw- 3 root users 208 2009-03-16 08:25 subsys hobbit@bigbrother:/var/lock> cd subsys/ -bash: cd: subsys/: Permission denied hobbit@bigbrother:/var/lock> ls -l subsys/ /bin/ls: subsys/smbfs: Permission denied /bin/ls: subsys/sysconfig: Permission denied /bin/ls: subsys/sec.pl: Permission denied /bin/ls: subsys/snmptt: Permission denied /bin/ls: subsys/snmptrapd: Permission denied total 0 |