System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

I have deleted /dev/printer

ORCIBAL_1
Advisor

I have deleted /dev/printer

Hello,

I have deleted /dev/printer
srwxrwxrwx 1 root system 0 Aug 1 2005 printer

I test chmod 1777, but it's not good.

How can i recreate it ?
5 REPLIES
Ivan Ferreira
Honored Contributor

Re: I have deleted /dev/printer

This is a socket file. Some service should create the file. You should restart that service. I don't have that file on my system, so I cannot tell you what service is. Try running fuser to that file in another of your systems to identify the process that uses it, maybe lpd (a device for a network printer).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
ORCIBAL_1
Advisor

Re: I have deleted /dev/printer

I restart lpd service, but it's not better.
Ivan Ferreira
Honored Contributor

Re: I have deleted /dev/printer

That is extrange, for example, on my system:

ls -la /dev/printer
ls: /dev/printer not found

Then I start the lpd service:

/sbin/init.d/lpd start
Printer service started

ls -la /dev/printer
srwxrwxrwx 1 root system 0 Mar 13 10:33 /dev/printer

The file is created
Then I stop the lpd service

/sbin/init.d/lpd stop

ls -la /dev/printer
ls: /dev/printer not found

And the file goes away.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Michael Schulte zur Sur
Honored Contributor

Re: I have deleted /dev/printer

Hi,

Ivan is talking about restarting the line printer daemon and not a spool queue.

greetings,

Michael
ORCIBAL_1
Advisor

Re: I have deleted /dev/printer

Thanks for all.

I have found the problem.
I have deleted link /usr/spool/lpd.