DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th October 2009
mururoa mururoa is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 50
Default Printer dont take rights

Hello,

I try to deal with my usb printer but I dont understand why it dont works as I set it.

I set in devfs.conf :

perm ulpt0 0666
perm ulpt1 0666

But when I connect the printer what I get is :

ls -l /dev/ulpt0

crw-r--r-- 1 root operator 0, 138 4 oct 11:36 /dev/ulpt0

and I have to set manually with root :

chmod 0666 /dev/ulpt0

ls -l /dev/ulpt0

crw-rw-rw- 1 root operator 0, 138 4 oct 11:36 /dev/ulpt0

to enable printing with any account.

I guess it's could be related that printer not connect at system start but connected later but what's wrong ?
Reply With Quote
  #2   (View Single Post)  
Old 4th October 2009
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

/etc/devfs.conf is only used at boot time or when devfs is restarted, the first few lines of the devfs.conf(5) manpage say this. If you have a USB printer that you are plugging in after boot time, you should use /etc/devfs.rules. Very basically, you could add to it:
Code:
[system=10] 
add path 'ulpt*' mode 0666
Then add to /etc/rc.conf:
Code:
devfs_system_ruleset="system"
It might be a better idea to make the mode 0660 and assign a printers group, but that's up to you. Also, you will either have to reboot after this change, or add the ruleset manually.

See the following manpages for more details: devfs.rules(5), devfs(8)

Last edited by BSDKaffee; 4th October 2009 at 01:35 PM.
Reply With Quote
  #3   (View Single Post)  
Old 5th October 2009
mururoa mururoa is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 50
Default

Thanks and shame on me for not reading the man once again
In fact I used it to add permissions for CD writer and then just add the permissions for the printer while not even reading the man when it didn't worked ...
Reply With Quote
  #4   (View Single Post)  
Old 5th October 2009
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

And it may also be the answer to your other problem. Many printer drivers reset the device at various times, and this often leads to the device being redetected and assigned default permissions.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FBSD 7.1 and Canon LBP-660 Printer Calderon FreeBSD General 8 4th May 2009 07:04 AM
Printer setup question JMJ_coder NetBSD General 12 6th November 2008 12:04 AM
sendmail dont boot dejabu18 FreeBSD Ports and Packages 0 8th October 2008 02:07 PM
IP Printer Setup kjemison FreeBSD General 4 2nd June 2008 02:35 PM
Cups + USB-Printer nihonto OpenBSD Packages and Ports 3 21st May 2008 07:49 PM


All times are GMT. The time now is 08:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick