Re: Executing script

From: Saverio Trioni (saverio.trioni_at_gmail.com)
Date: 07/05/05

  • Next message: Bill Marcum: "Re: hostname in logfile?"
    Date: Tue, 5 Jul 2005 08:21:56 +0200
    To: j Mak <joz_mak@yahoo.ca>
    
    

    >
    > This is the script:
    >
    > #! /bin/bash
    > killall kio_audiocd
    > eject /dev/hdc

    The point is brobably on the permissions for /usr/bin/eject (or
    wherever it sits).
    Try:

    ls -l `which eject` (these are backticks, not apostrophes)

    you'll see not everyone can eject. Either set a+x permission to eject
    or put yourself in the correct group.

    The other way is to put yourself in the gksu and sudo configuration.
    This involves a little more editing, but then you will be able to run
    eject, aptitude, synaptic, NetworkManager and everything else, just
    by writing
    "gksu /path/to/the/program" instead of just the program, in the
    commandline. gksu is in gnome maybe in kde is another.

    For hint, see the properties of the icon "synaptic" or "login
    configuration" or any other 'root' program. You right-click on the
    menu item and see the command used. this is the command to get root
    permissions. normally a plain "sudo /usr/bin/eject /dev/hdc" is
    sufficient, provided you are in the /etc/sudoers file.

    man sudo
    man sudoers
    man gksu
    man eject

    And, the script you found corrects a bug when apps do not close
    properly, but does not correct a security feature when norma users
    are not allowed to eject devices!

    > I didn't write it but found on the web while looking
    > for solution for the problem of not being able to
    > eject cd from the drive. This script supposedly
    > corrects a serious bug in kde that prevents ejecting
    > cds.
    > I also installed the 'eject' package that Roberto
    > suggested. I have the same problem with that one as
    > well. It works only if I login as root and navigate to
    > its folder; but it doesn't work as a link.
    > This is the output of the ls -la /usr/bin/xcd.sh
    > command:
    >
    > -rwxr-xr-x 1 root root 47 2005-06-26 15:58
    > /usr/bin/xcd.sh
    >
    > I tried the sh /usr/bin/xcd.sh link in the link dialog
    > but didn't work.
    >
    > Thanks,
    > jozsefmak
    >
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Tired of spam? Yahoo! Mail has the best spam protection around
    > http://mail.yahoo.com
    >
    >
    > --
    > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
    > with a subject of "unsubscribe". Trouble? Contact
    > listmaster@lists.debian.org
    >
    >

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Bill Marcum: "Re: hostname in logfile?"

    Relevant Pages

    • Re: bash script stop/continue depending on caddy state.
      ... user to load it with another cd, then the script continues its work. ... I realised it by eject command to unload caddy, then wait for a key hit ...
      (Fedora)
    • Re: Executing script(SOLVED)
      ... command, and now the program ejects the cd without ... > you'll see not everyone can eject. ... >> Do You Yahoo!? ... Mail has the best spam ...
      (Debian-User)
    • Re: Newbie having problem unmounting CD in Fedora Core 6
      ... issues with installing software caused by having no network connection ... left click the Eject option on the pop-up menu. ... and the error messages from umount give no clue. ... Is there a more aggressive command than umount for forcing ...
      (comp.os.linux.misc)
    • Re: Batch Job to Eject Cartridge(s)
      ... DFSMSrmm - run RMM CV volser EJECT command in batch TMP ... use the console interface to issue the operator LIBRARY EJECT ... practical Guide to TS1120 Tape Drives and TS3500 Tape Automation? ...
      (bit.listserv.ibm-main)
    • Re: Command to eject and close the CDROM tray ?
      ... The OP ask about a command to eject and close the CDROM tray. ... The only people for me are the mad ones -- the ones who are mad to live, ... the ones who never yawn or say a commonplace thing, but burn, burn, burn ...
      (comp.os.linux.misc)