Remote Login to Restart CUPS
Greetings,
First of all, this is my first post so I apologize if I have mis-categorized it.
I am creating a process where a non-technical user can log into Putty and a login script will automatically restart CUPS, display a message with enough time for them to read it and then log them out.
Criteria:
1. An icon for Putty will be placed on a Windows desktop.
2. Login credentials will be saved in putty.
3. When they log in, the login script will execute with no interaction from the user.
4. Script closes.
5. OS = Red Hat ES5
6. Linux user = ptradmin
I can perform steps 1 and 2 with no problem. I even know how to restart CUPS as root. The problem is when I log in as ptradmin and restart CUPS, I get a "rm: cannot remove /'/var/run/cups': Permission denied"
So it's obvious that the ptradmin user does not have permission to restart CUPS.
It appears I need to allow the ptradmin user the right to restart CUPS. Once that is done, a login script will need to be developed.
My knowledge of Linux is limited so please dumb down the concepts.
If you need any additional info, let me know.
Thanks,
Bryan
|