+ Post New Thread
Page 4 of 5 FirstFirst 12345 LastLast
Results 46 to 60 of 71
*nix Thread, Installation guide for Samba, Winbind, CUPS and PyKota in Technical; That looks like it's working to me. Can you try your chown command again?...
  1. #46

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    That looks like it's working to me. Can you try your chown command again?

  2. #47
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,414
    Thank Post
    193
    Thanked 247 Times in 120 Posts
    Rep Power
    61
    This did not work:
    Code:
    4428-prtsvr:~# chown -R ozanpakyuz:"domain admins" /etc/samba/drivers/
    chown: `ozanpakyuz:domain admins': invalid group
    But this did:
    Code:
    4428-prtsvr:~# chown -R ozanpakyuz:"jkhsadmins" /etc/samba/drivers/
    Does not seem to like the domain admins group???

  3. #48

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    I believe the spaces and double quotes may be confusing things. Try using the user/group numbers rather than the names.

  4. #49
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,414
    Thank Post
    193
    Thanked 247 Times in 120 Posts
    Rep Power
    61
    Things are not getting any easier......

    Seems that CUPS, SAMBA, PYKOTA are all working ok but if I try to do the following:

    Code:
    pkprinters -a -c 0.01 6050_RM74_51.214
    I get:

    Code:
    ERROR: Error: could not connect to server: No such file or directory
    ERROR:  Is the server running locally and accepting
    ERROR:  connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
    ERROR:  --- the most probable cause of your problem is that PostgreSQL is down, or doesn't accept incoming connections because you didn't configure it as explained in PyKota's documentation.
    I followed everything that was displayed as part of the auto setup (basiclly [y] to everything) but no go.

    any ideas... I am starting to regret this....

  5. #50

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    You have a database problem. Is postgres installed and running? Double check the database settings in pykota.conf and pykotadmin.conf. Do they match your database setup?

  6. #51
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,414
    Thank Post
    193
    Thanked 247 Times in 120 Posts
    Rep Power
    61
    Webmin reports both 7.4 & 8.2 being installed but cannot start.

    Me thinks something has gone all skewed.

    I have tried starting them from the command line but no error is reported?

  7. #52

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179
    Check your pykota.conf file against your postfgres config. It is possible to connect to the DB via a local socket, via 127.0.0.1 or via IP depending upon setup.

    Another option is to re-run the PyKota setup.... this blitzes the DB IIRC but will set it up again.

  8. #53

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    Webmin reports both 7.4 & 8.2 being installed but cannot start.
    I'm no postgres expert (we use mysql here) but I don't think you can have two versions installed together without them conflicting...

  9. #54
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,414
    Thank Post
    193
    Thanked 247 Times in 120 Posts
    Rep Power
    61
    Guys thanks for you input so far it has been much apreciated.

    I have removed all instances of postgresql (7.4 & 8.3) rebooted the server, re-installed 7.4, re-ran the pksetup said NO to downloading updates, created the database with no errors.

    I have 2 printers setup in CUPS one pykota managed and one CUPS manged they now BOTH work

    I can access the printers via windows and add the to the XP & Vista PC's and can print to them.

    Just have to sort quotas now.

    Many Many Thanks again.

  10. #55

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    congrats

  11. #56
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,414
    Thank Post
    193
    Thanked 247 Times in 120 Posts
    Rep Power
    61
    OK here goes last bit of config.

    I have looked at the newUser script in the wiki and set it up as is:

    Code:
    #!/bin/bash
     
    # Script to create new users for PyKota and assign initial
    # balance.
    # Script should be specified in the 'policy' section of
    # pykota.conf
     
    # Variable assignment
    PYKOTAUSERNAME=$1
    PYKOTAPRINTERNAME=$2
    INITIALBALANCE=2
     
    # If a pupil username limit by balance and assign inital quota
    if echo "$PYKOTAUSERNAME" | grep -q ^[0-9]
            then pkusers -a -s -l balance -b $INITIALBALANCE $PYKOTAUSERNAME && edpykota -a -s -P $PYKOTAPRINTERNAME $PYKOTAUSERNAME
     
    # If not a pupil, must be a staff member or test account so do
    # not limit printing
            else pkusers -a -s -l noquota $PYKOTAUSERNAME && edpykota -a -s -P $PYKOTAPRINTERNAME $PYKOTAUSERNAME
    fi
     
    exit
    In my case if I try to print as a student or teacher I get the following email:

    Code:
    Error in external policy script. Printing is denied.
    
    Your system administrator :
    
    ICT Support
    I think it is to do with the check that is done to see if the user is staff or not and if I am reading this right this line:

    Code:
    if echo "$PYKOTAUSERNAME" | grep -q ^[0-9]
    Checks to see if the user matches 0-9 my question is what is 0-9 and what do i need to check within my domain in order to change the check??

  12. #57

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    It's basically checking if the username has a number in it. If so it's presumed to be a pupil. Otherwise it's a member of staff. For example

    jsmith07
    jsmith08
    jsmith

    First two are pupils (year 7 and year 8 respecitvely) and the last is a staff member.

  13. #58
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,414
    Thank Post
    193
    Thanked 247 Times in 120 Posts
    Rep Power
    61
    Ahh that makes sense.

    I dont have users like that I wonder if I could change it to check group membership within the domain instead i.e if the group is students then hey guess what they must be a student.....

    Does pykota have a group variable do you know??

  14. #59

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    pykota has groups, but they don't do what you want. A better alternative would be to ask samba to tell you what groups the user is in.

    Code:
    net -P user info $PYKOTAUSERNAME | grep 'pupils'

  15. #60
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,414
    Thank Post
    193
    Thanked 247 Times in 120 Posts
    Rep Power
    61
    Geoff: I have added your one line to the script but it still fails:

    Code:
    #!/bin/bash
     
    # Script to create new users for PyKota and assign initial
    # balance.
    # Script should be specified in the 'policy' section of
    # pykota.conf
     
    # Variable assignment
    PYKOTAUSERNAME=$1
    PYKOTAPRINTERNAME=$2
    INITIALBALANCE=2
     
    # If a pupil username limit by balance and assign inital quota
    #if echo "$PYKOTAUSERNAME" | grep -q ^[0-9]
    if echo net -P user info "$PYKOTAUSERNAME" | grep 'Students'
            then pkusers -a -s -l balance -b $INITIALBALANCE $PYKOTAUSERNAME && edpykota -a -s -P $PYKOTAPRINTERNAME $PYKOTAUSERNAME
     
    # If not a pupil, must be a staff member or test account so do
    # not limit printing
            else pkusers -a -s -l noquota $PYKOTAUSERNAME && edpykota -a -s -P $PYKOTAPRINTERNAME $PYKOTAUSERNAME
    fi
     
    exit
    Any Ideas??

SHARE:
+ Post New Thread
Page 4 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Apache with Winbind Authentication
    By Ric_ in forum *nix
    Replies: 36
    Last Post: 22nd March 2008, 06:56 PM
  2. Samba/Cups print server
    By Geoff in forum *nix
    Replies: 7
    Last Post: 30th May 2007, 03:52 PM
  3. Replies: 3
    Last Post: 13th September 2006, 08:36 AM
  4. Windows Automated Installation Kit (WAIK) User's Guide
    By tosca925 in forum Windows Vista
    Replies: 0
    Last Post: 17th February 2006, 08:26 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •