[sudo-users] sudo-users Digest, Vol 58, Issue 12

Dnyanesh Dasare dnyanesh.dasare at gmail.com
Wed Oct 17 20:33:20 EDT 2007


Hi Dear,

I think you have to check the permission of the script. The script must have
execute permission so as to run. Check this initially

1. Move in to that Directory
2. use the command $sudo sh vhost

if it works then it is problem with the permission. Change it to 540.
In my opinion it should work.

Thanks,
Dnyanesh


On 10/16/07, sudo-users-request at courtesan.com <
sudo-users-request at courtesan.com> wrote:
>
> Send sudo-users mailing list submissions to
>        sudo-users at sudo.ws
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://www.sudo.ws/mailman/listinfo/sudo-users
> or, via email, send a message with subject or body 'help' to
>        sudo-users-request at sudo.ws
>
> You can reach the person managing the list at
>        sudo-users-owner at sudo.ws
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sudo-users digest..."
>
>
> Today's Topics:
>
>   1. path discrepancy (Tim Saylor)
>   2. Failing to install on SCO Unixware
>      (Battersby-Cornmell,      Robin Alasdair)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 15 Oct 2007 11:29:41 -0500
> From: "Tim Saylor" <tim.saylor at gmail.com>
> Subject: [sudo-users] path discrepancy
> To: sudo-users at sudo.ws
> Message-ID:
>        <9fb45b0b0710150929h58974eebi15a43d9f1d7bacf3 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I have a script named "vhost" in /usr/local/scripts owned by my user,
> tsaylor.  I added that directory to my PATH and I could run it fine as
> tsaylor but not with sudo.  When I changed its ownership to root, tsaylor
> didn't have permission to run it but still found it and sudo still
> couldn't
> find it.  When I run "which vhost" as tsaylor and as root through "sudo
> -s",
> both can find the script, but "sudo which vhost" can't find it.  Anyone
> know
> what the problem is?  Where does sudo get it's search path?  I believe
> this
> is a standard install of ubuntu feisty server, using sudo version 1.6.8p12
> .
> Below is an example of the problem.  Thanks!
>
>
> tsaylor at ubuntu:/usr/local/scripts$ ll
> total 4
> -rwxr--r-- 1 root root 2533 2007-10-13 03:38 vhost
> tsaylor at ubuntu:/usr/local/scripts$ sudo chown tsaylor:tsaylor vhost
> tsaylor at ubuntu:/usr/local/scripts$ cd
> tsaylor at ubuntu:~$ vhost
> Usage: vhost -u <URL> -e <EMAIL>
>
> Options:
> -h, --help            show this help message and exit
> -u example.com, --url= example.com
>                        The URL of the vhost. (Required)
> -e you at example.com, --email= you at example.com
>                        The administrator email for the vhost. (Required)
> ERROR: vhost file (/etc/apache2/sites-available/example.com) already
> exists.
> tsaylor at ubuntu:~$ sudo vhost
> sudo: vhost: command not found
> tsaylor at ubuntu:~$ cd -
> /usr/local/scripts
> tsaylor at ubuntu :/usr/local/scripts$ sudo chown root:root vhost
> tsaylor at ubuntu:/usr/local/scripts$ ll
> total 4
> -rwxr--r-- 1 root root 2533 2007-10-13 03:38 vhost
> tsaylor at ubuntu:/usr/local/scripts$ cd -
> /home/tsaylor
> tsaylor at ubuntu:~$ vhost
> -bash: /usr/local/scripts/vhost: Permission denied
> tsaylor at ubuntu:~$ sudo vhost
> sudo: vhost: command not found
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 16 Oct 2007 15:07:23 +0100
> From: "Battersby-Cornmell,      Robin Alasdair"
>        <Robin.Battersby-Cornmell at uisl.unisys.com>
> Subject: [sudo-users] Failing to install on SCO Unixware
> To: <sudo-users at sudo.ws>
> Message-ID:
>        <
> 8249D0428CAC9B4E9E1455B7DFC24AF901DF6C73 at GBMK-EXCH4.eu.uis.unisys.com>
>
> Content-Type: text/plain;       charset="iso-8859-1"
>
>
> Oh dear!  Having installed quite happily on AIX, HPUX & Solaris, I have
> been asked to put this wonderful tool on SCO UnixWare 7.1.1
>
> The problem I'm having is with the actual compile.  Now I haven't done
> anything other than run a 'configure' followed by a 'make' on any other OS,
> but I'm failing on SCO.  I'm expecting that it is a shared library that I
> need to add to my LD_LIBRARY_PATH, but where to start?
>
> The 'configure' runs with nothing remarkable as does much of the 'make'
> process that I cannot pretend to understand.  The error messages I get are:-
>
> sudo-1.6.9p4> make
>        gcc -c -I. -I.  -O2 -D_PATH_SUDOERS=\"/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0
> -DSUDOERS_MODE=0440  sudo_edit.c
> sudo_edit.c: In function `sudo_edit':
> sudo_edit.c:150: union has no member named `tv_sec'
> sudo_edit.c:151: union has no member named `tv_nsec'
> sudo_edit.c:186: union has no member named `tv_sec'
> sudo_edit.c:187: union has no member named `tv_nsec'
> sudo_edit.c:312: union has no member named `tv_sec'
> sudo_edit.c:313: union has no member named `tv_nsec'
> *** Error code 1 (bu21)
> UX:make: ERROR: fatal error.
>
>
> Um?  Help! Anyone got a clue where to look?
>
>
> Many thanks, in advance,
> Robin
>
> ***********************************
>
> This email is sent in confidence for the addressee only.
>
> Unauthorised recipients must preserve this confidentiality and should
> please advise the sender immediately by returning the original email to us
> without reading it, taking a copy or disclosing it to anyone else. Please
> also destroy and delete the email from your computer.
>
> We have taken reasonable precautions to ensure that no viruses are
> transmitted to any third party. Unisys Insurance Services Limited does not
> accept any responsibility for any loss or damage resulting directly or
> indirectly from the use of this email or its contents.
>
> Unisys Insurance Services Limited is authorised and regulated by the
> Financial Services Authority, is a member of the UNISYS group of companies
> and provides outsourcing services to the Financial Services Industry
>
> Unisys Insurance Services Limited Registered in England No. 4087012
> Registered Office: Bakers Court, Bakers Road, Uxbridge, UB8 1RG
>
>
> ------------------------------
>
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
>
> End of sudo-users Digest, Vol 58, Issue 12
> ******************************************
>



More information about the sudo-users mailing list