Permissions problem Solved)

NW barnaby at drofle.com
Thu Apr 15 11:02:23 UTC 2010


Jonas Norlander wrote:
> 2010/4/14 NW <barnaby at drofle.com>:
>> I have been looking at the possibility of using my one printer for all
>> three computers at home, see other thread. Now I don't know if I have
>> done anything silly but .....
>>
>> Yesterday I couldn't print anything. Research tracked down the problem
>> to the permissions on dev/lp0. They were  rw-rw---- with user = root and
>> group = lp. So others had no permissions.
> 
> You shouldn't need to change permissions on devices in /dev. Perhaps
> you need to add yourself to a group? On my Kubuntu 9.10 I am in the
> lpadmin group (don't know if Hardy using this group).
> 
>> I used chmod (with sudo) to change the permissions to rw-rw-rw- and I
>> was then able to print. Fine.
>>
>> Today same problem. The permissions had reverted to rw-rw----. I have
>> changed them again. Now I don't want to have to keep running chmod every
>> session, that is just silly and anyway it has only just started to happen.
>>
>> Can anyone help here please? For a start I don't understand why the new
>> set of permissions changed back. Shouldn't my change remain fixed?
> 
> No they are not permanent. All devices in /dev is dynamically created
> at boot or when attaching a new "hot-plug" device like USB devices.
> 
> / Jonas
> 
I eventually tracked down the relevant file, /etc/udev/permissions.rules
and made the necessary change. On the line referring to the line printer
I added the mode change (MODE="0666") and logged out and then in. The
permissions on /dev/lp0 are now set as required and the printer works fine.

Now on to sharing it with the other computers on the network.

Neil




More information about the kubuntu-users mailing list