Hi all. Im not sure if this is the place to be asking this, but im confident that someone will be able to answer my question. We're using thin client (nymph) in KDE and have 500+ users. What I want to do is install a number of printers but only let certian people use certain printers. I was thinking I would have to create a group for each printer and then add users accordingly. Then here comes my problem. Im still very new to linux and have no idea how to create a group for an installed printer.Also im not sure whether i should be installing the printer on the nis server or the thin clint server (but im sure this definately is a question for another list).As i cant add users to groups if they dont exsist on that server. Could any one help? Even if it's advise as to another way to do this. Any comments welcome. Cheers -- Andrew Nix St Pauls Catholic High School Firbank Road Newall Green Wythenshawe Manchester M23 2YS tel: 0161 4375841 ext 168 fax: 0161 4982030
--- Andrew Nix <andrew.nix@st-paulshigh.manchester.sch.uk> wrote:
Hi all. Im not sure if this is the place to be asking this, but im confident that someone will be able to answer my question. We're using thin client (nymph) in KDE and have 500+ users. What I want to do is install a number of printers but only let certian people use certain printers.
OK, this is the correct place to ask. :) I can try and help a bit.
I was thinking I would have to create a group for each printer and then add users accordingly. Then here comes my problem. Im still very new to linux and have no idea how to create a group for an installed printer.
Your thinking is spot on, Andrew. The solution is easy enough. Install the printers using something like CUPS. Then if you create individual groups for the printer, you can the add the users appropriately (Yast will help you here). You can also do it from the command-line: addgroup new-group adduser <user-name> new-group You could also do something like this: cat /etc/passwd | awk -F: '{print $1}' | xargs useradd $1 new-group BUT I do not recommend it, since you'll add people like "nobody" to the group and that is not a good idea! Once you have that done, you can then attach the printer and assign it to the said group: chwon root.groupname /dev/lp/X (changing as appropriate). I really do recommend CUPS as a printing tool. It is quite easy to setup. (It has a web interface). Once installed you can do: lynx http://localhost:631 and configure away :)
Also im
not sure whether i should be installing the printer on the nis server or the thin clint server (but im sure this definately is a question for another list).
It doesn't matter, as long as CUPS knows what's what, and you have /etc/hosts setup correctly.
As i cant add users to groups if they dont exsist on that server. Could any one help? Even if it's advise as to another way to do this. Any comments welcome. Cheers
(see above). HTH, -- Thomas Adam ===== Thomas Adam "The Linux Weekend Mechanic" -- www.linuxgazette.com ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/
participants (2)
-
Andrew Nix
-
Thomas Adam