Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: scanimage/sane permissions

  1. #1
    Join Date
    Jun 2008
    Location
    Lebanon
    Beans
    87
    Distro
    Ubuntu 8.04 Hardy Heron

    scanimage/sane permissions

    I'm having a problem with the permissions on my scanner, I can't seem to get any non-root user to scan.

    sudo scanimage works every time, but how can I modify the permissions so anyone can scan images?

    scanimage as a non-root user gives the following error:

    Code:
    abukalam-server@abukalam-server:/var/www$ scanimage
    scanimage: open of device brother2:bus6;dev1 failed: Error during device I/O

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: scanimage/sane permissions

    Add your user to the scanner group:
    Code:
    sudo gpasswd -a username scanner
    EDIT:
    In order the changes take effect, you have to log out and log back in.
    Last edited by sisco311; January 25th, 2010 at 05:26 PM.

  3. #3
    Join Date
    Jun 2008
    Location
    Lebanon
    Beans
    87
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: scanimage/sane permissions

    I'm already a member of scanner. I don't think that group owns the printer, how can I chown the printer?

    Here's the list of groups and users:

    Code:
    root:x:0:
    daemon:x:1:
    bin:x:2:
    sys:x:3:
    adm:x:4:abukalam-server
    tty:x:5:
    disk:x:6:
    lp:x:7:
    mail:x:8:
    news:x:9:
    uucp:x:10:
    man:x:12:
    proxy:x:13:
    kmem:x:15:
    dialout:x:20:abukalam-server
    fax:x:21:
    voice:x:22:
    cdrom:x:24:abukalam-server
    floppy:x:25:
    tape:x:26:
    sudo:x:27:
    audio:x:29:
    dip:x:30:
    www-data:x:33:
    backup:x:34:
    operator:x:37:
    list:x:38:
    irc:x:39:
    src:x:40:
    gnats:x:41:
    shadow:x:42:
    utmp:x:43:
    video:x:44:
    sasl:x:45:
    plugdev:x:46:abukalam-server
    plugdev:x:46:abukalam-server
    staff:x:50:
    games:x:60:
    users:x:100:
    nogroup:x:65534:
    libuuid:x:101:
    syslog:x:102:
    klog:x:103:
    fuse:x:104:
    ssl-cert:x:105:
    lpadmin:x:106:abukalam-server
    crontab:x:107:
    mlocate:x:108:
    ssh:x:109:
    sambashare:x:110:abukalam-server
    saned:x:111:abukalam-server
    winbindd_priv:x:112:
    netdev:x:113:
    messagebus:x:114:
    avahi:x:115:
    polkituser:x:116:
    haldaemon:x:117:
    abukalam-server:x:1000:
    admin:x:118:abukalam-server
    openldap:x:120:
    saneusers:x:1001:abukalam-server,www-data,nobody,root,daemon,bin,sys,sync,games,man,lp,news,mail,uucp,proxy,backup,syslog,klog,hplip,sshd,landscape,libuuid,messagebus,saned,irc,gnats,polkituser,haldaemon,openldap,mysql,mt-daapd,list,ava$
    mysql:x:121:
    bind:x:122:
    postfix:x:123:
    postdrop:x:124:
    dhcpd:x:125:
    scanner:x:1002:abukalam-server,www-data
    landscape:x:126:
    debian-transmission:x:119:

  4. #4
    Join Date
    Jan 2010
    Beans
    78

    Re: scanimage/sane permissions

    hi,

    i have the same problem with my xerox phaser 3100MFP.
    i still haven't found any solution to this but just for now i made a link of "xsane" on my desktop which i run as admin(with right click).

    if anyone solves it pls post.

  5. #5
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: scanimage/sane permissions

    Do you know the device name of the scanner?

    What's the output of:
    Code:
    ls -al /dev/usb*
    ?

  6. #6
    Join Date
    Jan 2010
    Beans
    78

    Re: scanimage/sane permissions

    hi,
    ls -al /dev/usb*
    gives me this:

    lrwxrwxrwx 1 root root 7 2010-03-08 16:07 /dev/usblp0 -> usb/lp0
    crw-rw---- 1 root root 253, 0 2010-03-08 18:07 /dev/usbmon0
    crw-rw---- 1 root root 253, 1 2010-03-08 18:07 /dev/usbmon1
    crw-rw---- 1 root root 253, 2 2010-03-08 18:07 /dev/usbmon2
    crw-rw---- 1 root root 253, 3 2010-03-08 18:07 /dev/usbmon3
    crw-rw---- 1 root root 253, 4 2010-03-08 18:07 /dev/usbmon4
    crw-rw---- 1 root root 253, 5 2010-03-08 18:07 /dev/usbmon5

    /dev/usb:
    total 0
    drwxr-xr-x 2 root root 60 2010-03-08 16:07 .
    drwxr-xr-x 16 root root 4200 2010-03-08 16:07 ..
    crw-rw---- 1 root lp 180, 0 2010-03-08 16:07 lp0

  7. #7
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: scanimage/sane permissions

    Add your user to the lp (lowercase L) group:
    Code:
    sudo gpasswd -a username lp
    log out & log back in.

  8. #8
    Join Date
    Jan 2010
    Beans
    78

    Re: scanimage/sane permissions

    Add your user to the lp (lowercase L) group:
    Code:
    sudo gpasswd -a username lp
    log out & log back in.
    it worked! i can now run "xsane" as user but when i try to save the image i get error "failed to create file: permission denied" and it doesn't save it.

  9. #9
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: scanimage/sane permissions

    Make sure that the ~/.sane directory is owned by your user:
    Code:
    sudo chown -R $USER: ~/.sane
    Did you run sudo xsane?
    http://www.psychocats.net/ubuntu/graphicalsudo

  10. #10
    Join Date
    Jul 2009
    Location
    NC, South Africa
    Beans
    212
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: scanimage/sane permissions

    I have found that XSane requires the destination folder, where images will be saved, to be private (not readable by others). Click on the stiffy icon (left of the filename) and choose 'Create Folder' on the next screen. You may name it 'scan', or whatever, and the permissions will be correctly set upon creation.

    Alternatively you may use a file browser to create and set the permissions of the destination folder.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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