Results 1 to 7 of 7

Thread: permissions help - running an driver installer script

  1. #1
    Join Date
    Sep 2011
    Location
    Pennsylvania, U.S.A.
    Beans
    2,955
    Distro
    Ubuntu Development Release

    permissions help - running an driver installer script

    Maybe my search skills are lacking but I can't find releveant help. I'm trying to install Samsung printer and scanner drivers, Samsung - now HP - supply Univeral Linux Drivers (ULD). The destination is a fresh install of Xubuntu 18.04.1 64 bit. I've been using these for a few years and have gotten the scripts to run until recently. My source is here:

    Code:
    https://support.hp.com/us-en/drivers/selfservice/samsung-xpress-sl-m2070-laser-multifunction-printer-series/16450377
    My machine is an M2870 but there is one script for all similar machines. The script is in a folder on the desktop of the user with administrator privileges. I did set install-scanner.sh to be executable. I tried what appears to be the commonly recommended procedure first and got this:

    Code:
    firstfloor@firstfloor-desktop:~/Desktop/Samsung$ ./install-scanner.sh
    
     **** Root privileges are required
    Root privileges are required? O.K. so tried this:

    Code:
    firstfloor@firstfloor-desktop:~/Desktop/Samsung$ sudo ./install-scanner.sh
    
     [sudo] password for firstfloor:  
     **** Running install ...
    
     **** Press 'Enter' to continue or 'q' and then 'Enter' to quit. :  
    
    
    **** Do you agree ? [y/n] : y
     ./noarch/package_install.sh: 46: ./noarch/package_install.sh: ./noarch/package_install.sh: Permission denied
     **** Install finished.
    I tried using bash as well

    Code:
    sudo bash install-scanner.sh
    but with the same result - permission denied. What am I doing wrong? Thanks for any help on what seems like a simple straight forward procedure.
    Last edited by kurt18947; October 5th, 2018 at 04:15 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    Silicon Valley,California
    Beans
    61
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: permissions help - running an driver installer script

    Maybe a folder and file permission problem. Change ownership.
    Kerry Kobashi
    Kobashi Computing

  3. #3
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: permissions help - running an driver installer script

    I would try opening a root terminal with
    Code:
    sudo -i
    and running the script from there.

  4. #4
    Join Date
    Sep 2011
    Location
    Pennsylvania, U.S.A.
    Beans
    2,955
    Distro
    Ubuntu Development Release

    Re: permissions help - running an driver installer script

    Quote Originally Posted by oldos2er View Post
    I would try opening a root terminal with
    Code:
    sudo -i
    and running the script from there.
    I'm pretty gunshy about using root. I'll do some reading on how to not trash my system.

  5. #5
    Join Date
    Sep 2011
    Location
    Pennsylvania, U.S.A.
    Beans
    2,955
    Distro
    Ubuntu Development Release

    Re: permissions help - running an driver installer script

    Quote Originally Posted by JengaBlocks View Post
    Maybe a folder and file permission problem. Change ownership.
    I thought that running from an admin account permissions wouldn't matter. I'll look at the ownership and permissions again. Thanks for your help.

  6. #6
    Join Date
    Apr 2012
    Beans
    7,256

    Re: permissions help - running an driver installer script

    How did you extract the archive? perhaps the executable permissions on the ./noarch/package_install.sh file got lost? Check with

    Code:
    ls -l ./noarch/package_install.sh
    or
    Code:
    namei -l ./noarch/package_install.sh

  7. #7
    Join Date
    Sep 2011
    Location
    Pennsylvania, U.S.A.
    Beans
    2,955
    Distro
    Ubuntu Development Release

    Re: permissions help - running an driver installer script

    Thanks to all for their input. I've used Ubuntu Gnome since Gnome 2 went away but had SWMBO using Xubuntu because their UI seemed more stable, SWMBO does NOT like change as she will proclaim to one and all. Since mainline Ubuntu has gone back to Gnome I'm hoping the UI will be stable. So I overwrote the Xubuntu install with Ubuntu and the script ran as expected and both printer & scanner work. What was the difference re permissions between Ubuntu 18.04.1 and Xubuntu 18.04.1? Dunno but there seemed to be one. I can set Ubuntu up with the help of a couple extensions to look and work much like her Xubuntu desktop.

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
  •