D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Permissions problem

 

On Wed, Apr 14, 2010 at 08:56:13AM +0100, NW wrote:
> 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.
> 
> 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?

Other people have pointed out the correct solution (adding users to
the lp group). The reason it changes back, for the record, is that
device files don't actually exist on disk - they're created at boot
time by udev. It's possible to configure udev to create them with
different permissions - but there's not much point.

-- 
Rev. Benjamin M. A'Lee || Nutritionist, Private Investigator
bma@xxxxxx || gpg: 0x166891C7 || http://bma.cx/
He who breaks a thing to find out how it works has left the path of wisdom. ---
J.R.R Tolkien

Attachment: signature.asc
Description: Digital signature

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html