- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LP Administrators
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2000 01:58 AM
06-21-2000 01:58 AM
LP Administrators
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2000 03:11 AM
06-21-2000 03:11 AM
Re: LP Administrators
LP: Administrator not in password file ..... is this your problem ? If so :
This error can be caused by any of the following:
1. No entry in /etc/passwd for lp. To correct this problem
insert the following line into /etc/passwd:
lp:*:9:2: LP spooler :/usr/spool/lp:/bin/csh
2. A corrupt /usr/lib/lpsched file. To correct this problem
retrieve the /usr/lib/lpsched file off a valid backup
tape or the HP-UX installation tape.
3. The permission on the file /etc/passwd. To correct this
problem execute the command:
chmod 444 /etc/passwd
PS Has last nights poor performance in Euro 2000 caused you to take up Unix Admin and give up managing the English football team ? ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2000 03:13 AM
06-21-2000 03:13 AM
Re: LP Administrators
if you want to provide lpshut/lpsched rights to normal users you have to make a setuid program which starts lpshut/lpshed with the sufficient rights.
Here my solution:
Write a little c program:
main(argc, argv)
int argc;
char **argv;
{
setuid(9); /* lp user */
setgid(2); /* bin group */
if(strstr(argv[0], "lpshut"))
execlp("/usr/sbin/lpshut", "lpshut", 0);
if(strstr(argv[0], "lpsched"))
execlp("/usr/sbin/lpsched", "lpsched", 0);
}
Compile the c source and put the executable for e. g. in /usr/local/bin/mylpshut
make a hard link to mylpsched:
ln /usr/local/bin/mylpshut /usr/local/bin/mylpsched
Change the owner to root:
chown root /usr/local/bin/mylpshut
Set the suid bit:
chmod 4111 /usr/local/bin/mylpshut
Now everybody can lpshut/lpsched with the new mylpshut/mylpsched.
The c program is quick and dirty:
no optional arguments are given to the original lpshut/lpsched.
It's free for you to add more features to it.
Greetings
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2000 03:14 AM
06-21-2000 03:14 AM
Re: LP Administrators
lp:*:9:7::/var/spool/lp:/sbin/sh
good luck !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2000 05:52 AM
06-21-2000 05:52 AM
Re: LP Administrators
This will give the specified user(s) the rights to run specified programs as root.
Can be obtained from the porting archive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2000 07:26 AM
06-21-2000 07:26 AM
Re: LP Administrators
This allows you to set up a restricted verion of SAM, based on the user, and you configure what they can and cannot do.
sam -r is used to set this up for you.
man sam will also explain it for you.