Showing posts with label User. Show all posts
Showing posts with label User. Show all posts

Tuesday, 3 January 2012

PaperCut print quotas for staff and students on different domains

We're now implementing a print quota for both Students and Staff. The only real issue we have come across is how to seperate the staff from the students.

We initially had the system so that whenever anyone printed to the system, it would add their account to PaperCut, setting their credit to £2.00 and limiting them to that quota. For staff we simply went through the list and unticked "limit account".

Now we are giving students £1.00 per week and Staff £2.00 per week. It was a while ago so I can't remember specifically, but I remember having to set up a group in the staff domain with staff members from the department in, and a group in the student domain which had the group in the staff domain in it. I think this was because with PaperCut NG you couldn't import groups from different domains.

I didn't have access to staff domain to add new members so computer services have added me as some sort of read/write user. I am writing here how I can add members to the group so as to not forget:

  1. Load up outlook
  2. search for users and groups
  3. Open ArtDesignStaff group
  4. Modify Members
  5. Then click the Add button
Sorted!

Now, every week I simply:

  1. Click Bulk User Actions
  2. Click:
    1. All Users
    2. Whose balance is less than £1.00
    3. Set credit to
    4. £1.00
    5. Apply
  3. Click Bulk User Actions
  4. Click:
    1. ArtStaffPrintList
    2. Whose balance is less than £1.00
    3. Set credit to
    4. £2.00
    5. Apply
It appears that PaperCut does update the groups. I checked it 18 hours later (the next day) and the new users were registered as being in the ArtStaffPrintList group.

Cheers

Tuesday, 15 March 2011

Adding local users to OS X via Command Line - Apple Remote Desktop

Media wanted all apple macs to have a "Media" login, and show a list of users for the login window. As I'd done this before I thought it'd be pretty straight forward. I found the script I used to do an apple event previously:


dscl / -create /Users/apple
dscl / -create /Users/apple UserShell /bin/bash
dscl / -create /Users/apple RealName "Apple"
dscl / -create /Users/apple UniqueID 505
dscl / -create /Users/apple PrimaryGroupID 1000
dscl / -create /Users/apple NFSHomeDirectory /Users/apple
dscl / -passwd /Users/apple "apassword"

Unfortunatley it came up with an error:

Data source (/) is not valid

I figured last time I used the command it was on OS X 10.4.11, and we're now on OS X 10.5.8. I searched on the old internet and found this post, which might have been where I originally got the commands. I also found someone else having the same error. There was a few solutions, but by far the easiest was simply replacing the '/' with a '.'  . i.e.


dscl . -create /Users/media
dscl . -create /Users/media UserShell /bin/bash
dscl . -create /Users/media RealName "Media"
dscl . -create /Users/media UniqueID 505
dscl . -create /Users/media PrimaryGroupID 1000
dscl . -create /Users/media NFSHomeDirectory /Users/media
dscl . -passwd /Users/media "adifferentpassword"

The only problem I had after this (if you can call it a problem) was getting it to use a different picture. The one it seems to set is a networked picture. I did a little searching but found nothing. I'm sure the 'dscl' command could probably do it, but it seems to have a large man page on it, doh! If I get more time (unlikely) then you can get the dscl command to read the settings for a user already set up.

To set up the login screen I simply used the settings in Workgroup Managers computer management settings for "Login". Simple.

Anyway. this has definitely saved me a little time in the future!!