[sudo-users] tar fails on gzip or bzip compression

Joe Friedeggs friedeggs44 at hotmail.com
Wed Apr 25 10:14:08 EDT 2012




> 
> On Wed, 25 Apr 2012 07:23:23 CDT, Joe Friedeggs wrote:
> 
> > I am having issues with 'tar' command when compression (gzip or bzip2) is use
> > d.  The users have sudo access to:
> > 
> > /bin/tar *
> > 
> > but this fails when the gzip (or bzip) options is selected.  For example:
> > 
> >  > sudo /bin/tar ztvf testthis.tar.gz
> > /bin/tar: gzip: Cannot exec: Permission denied
> 
> Do you have NOEXEC enabled for that command?  If so, that would
> explain the problem since tar would be unable to execute gzip or
> bzip2.
> 
>  - todd

Thanks, Todd, was banging my head on this one, but since you pointed it out, it make perfect sense.  I separated my 'exec' and 'noexec' commands a couple of months ago, guess I put tar in the wrong group.

Joe
 		 	   		  


More information about the sudo-users mailing list