LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2011, 08:42 AM   #1
linuxboy2008
LQ Newbie
 
Registered: Feb 2011
Location: South
Distribution: ubuntu 10.04,debian 6.0
Posts: 19

Rep: Reputation: 3
Unhappy lpr transplantation


hi,
i get lpr from debian package center
i compile it ,and it works good on my computer
but when transplantation it to my dev-board
i get this :
[root@loo:/]# lpd
lpd: 'lp' uid not in password file

[root@loo:/]# id lp
uid=4(lp) gid=7(lp) groups=7(lp)

[root@loo:/]# id root
uid=0(root) gid=0(root) groups=0(root)

but in the /etc/group, /etc/passwd, /etc/shadow which has lp
and /etc/group,/etc/passwd ,/etc/shadow was copyed from my computer

can any one solution it ,and help me .

thank you
 
Old 04-18-2011, 11:57 AM   #2
mshon
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 1
permissions Re: lpr transplantation

I wouldn't say that it's likely, but you might get this if the passwd file was not readable by the lpr user.
You example shows you running as root and finding the info that you need, but the daemon probably runs non-root and seems to have a problem.
Check the other-read bit on /etc/passwd .

When copying files like these, one must take special care to preserve permissions,
but you probably did, and this is some other problem entirely.
 
Old 04-19-2011, 02:43 AM   #3
linuxboy2008
LQ Newbie
 
Registered: Feb 2011
Location: South
Distribution: ubuntu 10.04,debian 6.0
Posts: 19

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by mshon View Post
I wouldn't say that it's likely, but you might get this if the passwd file was not readable by the lpr user.
You example shows you running as root and finding the info that you need, but the daemon probably runs non-root and seems to have a problem.
Check the other-read bit on /etc/passwd .

When copying files like these, one must take special care to preserve permissions,
but you probably did, and this is some other problem entirely.
thank you
i have solved !
# strace lpr > 1.log
# vim 1.log

that i find i have no libns*.so
so i can copyed them to /lib and work good
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
about lpr command and source ip of lpr command Fond_of_Opensource Linux - Newbie 1 04-11-2007 07:35 AM
what is the different between lp, lpr, llpr, lpr.cups... lnthai2002 Linux - Software 5 04-13-2006 04:09 PM
confused... lpr/ lpr-cups shadow.blue Linux - Software 1 04-06-2004 05:15 PM
lpr & lpr-cups commands not working with CUPS trinbellwoods Debian 2 01-08-2004 08:25 AM
lpr undeadpenguin Linux - Hardware 8 10-29-2003 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration