Re: Executing script(SOLVED)

From: j Mak (joz_mak_at_yahoo.ca)
Date: 07/05/05

  • Next message: Clive Menzies: "Is there a fetchmail setting to delete messages after x days?"
    Date: Tue, 5 Jul 2005 13:20:20 -0400 (EDT)
    To: debian-user@lists.debian.org
    
    

    The problem is now solved. I edited the sudoers file
    entering my username with the following command:

    User_Alias FULLTIMERS = mak
    FULLTIMERS ALL = NOPASSWD: ALL
     
    After that, I created a link with sudo /usr/bin/xcd.sh
    command, and now the program ejects the cd without
    problem.

    Thanks everyone for all the suggestions.

     Regards,
    jozsefmak

    > >
    > > 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
    > >
    > >
    >
    >

    __________________________________________________
    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
    

  • Next message: Clive Menzies: "Is there a fetchmail setting to delete messages after x days?"

    Relevant Pages

    • Re: [SLE] YAST Online Update error: kdesu: cannot connect to X server
      ... My SGI Prism running SLES 9 is also very temperament ... > online_update') from command line it should bring up ... > Do You Yahoo!? ... Mail has the best spam ...
      (SuSE)
    • 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: EJECT CD FROM DOS SHELL
      ... > I know this not a Linux question but I though you guy's can help me ... > EJECT A CD/DVD FROM THE COMMAND LINE. ... Do you Yahoo!? ...
      (RedHat)
    • 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)