Sponsored Content
Top Forums Shell Programming and Scripting Help configuring sudo for multiple file copies Post 302409616 by infinitiguy on Thursday 1st of April 2010 04:51:29 PM
Old 04-01-2010
Help configuring sudo for multiple file copies

Hiya,
I want to allow some users to copy all filenames of a specific filetype, to a limited directory.

3+ users: need to be able to copy(as root) any *.war file to /usr/local/tomcat/current/webapps/

I tried the following...
Code:
dmurphy         huskar=/tmp/who.sh,/bin/cp [A-z]*.war /usr/local/tomcat/current/webapps/[A-z]*

but it didn't work out so well. I keep getting the error below.
Code:
[1650]#[dmurphy@huskar:/usr/local/tomcat/current/webapps]$ sudo cp /stg/dmurphy/blah.war .

Sorry, user dmurphy is not allowed to execute '/bin/cp /stg/dmurphy/blah.war .' as root on huskar.


What am I doing wrong?

Last edited by pludi; 04-02-2010 at 02:20 AM.. Reason: code tags, please...
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

lp not printing multiple copies

I'm trying to print multiple copies of a file on sun solaris 8 with the lp -n command to no avail. No matter what numeric value I supply -n, I still only get 1 copy of the file printed. The command I'm using is 'lp -d SNY_IT5000-2 -n2 file' The printer is an HP Laserjet 4000 with a... (2 Replies)
Discussion started by: hassan2
2 Replies

2. AIX

Printing multiple copies via remote queue

Hi all, I have an interesting problem. Using remote queues to print using jetdirect printers I am unable to get a printer to print multiple copies of a print job. command being used: lpr -P -#3 ./test (one copy prints) Also tried: enq -P -C3 ./test (same results) Any ideas? ... (6 Replies)
Discussion started by: Luck
6 Replies

3. AIX

Printing a number of copies of a txt file

Hi, We have an application running on AIX5.3 that generates text files that are sent to be printed using the lp command. The user can specify the number of copies they want printed, but only one copy ever gets printed. I've checked the lp command that is used, and it correctly specifies... (5 Replies)
Discussion started by: stebradshaw
5 Replies

4. Shell Programming and Scripting

Script to print multiple copies of the same file

Hi, this is my first post so I hope I have placed it in the appropriate section! I have created a looping script to print a text file multiple times. The script works great, and it displays the job numbers of all the prints that result from its execution. The trouble is, only the first job... (1 Reply)
Discussion started by: Alpha7
1 Replies

5. UNIX for Dummies Questions & Answers

Printing Multiple Copies

Has anyone come accross and solved an issue where only 1 copy of a doc prints after you use the -n flag and specify more then 1. My exact syntax is lp -dprintername -n3 documentname enq command does same thing. Both commands show the 3 copies in the queue but only 1 ever prints I am using AIX... (0 Replies)
Discussion started by: capeme
0 Replies

6. UNIX for Dummies Questions & Answers

multiple copies at once

Dear all, Today I spend almost all my day with something I hope any of you can help me with... I'm trying to write a small script (!/bin/sh) to be able to make 900 copies of one file. Can anyone help me with this? I couldn't figure this out (maybe I need to create some sort of loop) and couldn't... (8 Replies)
Discussion started by: marjocello
8 Replies

7. Homework & Coursework Questions

Script that copies one file to/over another

1. The problem statement, all variables and given/known data: Write a script that asks for 4 arguments, and the 1st and 3rd need to be -i and -o, and the 2nd/4th need to be file names. Technically, it's supposed to be run as: ./Lab_14.sh -i input.txt -o output.txt Depending on how many... (0 Replies)
Discussion started by: SoVi3t
0 Replies

8. Shell Programming and Scripting

Print multiple copies page by page using lp command

Hi I have a pdf file that is being generated using the rwrun command in the shell script. I then have the lp command in the shell script to print the same pdf file. Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies

9. Shell Programming and Scripting

How to make multiple copies?

At work I have to create multiple copies of a file all the time. Example: I have a file called Sec30p01.txt I need thirty of these, then I edit one line in each to make 30 different control files. So I end up with Sec30p02.txt, Sec30p03.txt and so on up to 30 Currently I copy the first file... (8 Replies)
Discussion started by: faaslave
8 Replies
BLOBWARS(6)						    Blob Wars: Metal Blob Solid 					       BLOBWARS(6)

NAME
blobwars - platform shooting game SYNOPSIS
blobwars [OPTION] DESCRIPTION
Since their world was invaded by an alien race, the Blobs have faced a lifetime of war. But now they have a chance to win the war once and for all. In Blob Wars: Metal Blob Solid, you take on the role of a fearless Blob agent, Bob. Bob's mission is to infiltrate the various enemy bases around the Blobs' homeworld and rescue as many MIAs as possible. But standing in his way are many vicious aliens, other Blobs who have been assimilated and the evil alien leader, Galdov. OPTIONS
-fullscreen start the game in full screen mode. -mono use mono sound output instead of stereo. -noaudio runs the game without sounds and music. -version shows version number and exits. --help displays a summary of command line options to standard output, and exits. MORE INFO
The Blob Wars: Metal Blob Solid gameplay manual can be found in </usr/share/doc/blobwars/index.html>. AUTHOR
Written by Stephen Sweeney <stephen.sweeney@parallelrealities.co.uk>. This manual page was written by Jorda Polo <jorda@ettin.org>, for the Debian project (but may be used by others). blobwars April 2006 BLOBWARS(6)
All times are GMT -4. The time now is 12:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy