Ubuntu :: Sudo WGet Piped To TAR Has Wrong File Owner
Jan 4, 2010
I'm trying to download a file and extract it in one line, but the extracted file is owned by me instead of root even though I'm using sudo:
Code:
sudo sh -c 'wget [URL]'
If I don't try to extract the file, it is owned by root as I expected:
Code:
sudo sh -c 'wget [URL]'
View 1 Replies
ADVERTISEMENT
Mar 16, 2010
I like the "Ubuntu" sudo philosophy and wanted to setup this sudo the same way on my Debian system. I was happy when I found that I just have to do the following:
-create a group 'admin'
-adduser christian admin
-visudo
-add the line: %admin ALL=(ALL) ALL
Then I tried sudo rm -rf / to check if sudo works. All worked fine. No, seriously, I can move around files that belong to the root and such, so sudo somehow works. But when creating new files with sudo, like e.g.
tar xzf myZippedTarball
these files belong to user 41034 and to the group users instead of root root:
drwxr-xr-x 7 41034 users 4096 2009-11-01 01:07 libsvm-2.9
Certainly, this is not the way I want to have. The user 41034 doesn't even show up in /etc/passwd...
View 2 Replies
View Related
Apr 21, 2009
How can I make a virtual host (right now I just use NameVirtualHost *:80) that will load the same page for every domain that matches imap.domain.com, smtp.domain.com, or pop3.domain.com?
View 4 Replies
View Related
Nov 6, 2010
Code: stuart@stuart:~/$cat showthread.php.html | grep -o [URL][^"< ]*" | uniq | head -n3 | plowdown - cannot stat '-': No such file or directory Code: stuart@stuart:~/$ awk NR==$x Musiclist.txt | cut -d/ -f6 | basename $1 .mp3 .mp3 Here's some system info on the bash i'm using:
[Code]...
View 13 Replies
View Related
Jul 15, 2010
When I try to open sudo gedit /etc/X11/xorg.conf
by entering it in the "run tool" nothing appears...
what's wrong?
View 4 Replies
View Related
Jan 9, 2010
I am facing a basic problem in RHEL 5.2. Some of files in a mounted showing ? in place of owner and group owner.
root# find /data/abc -nouser
listing those files.
How to delete those files because
root# find /data/abc -nouser -exec rm -rf {} ;
showing error access is denied.
View 10 Replies
View Related
Mar 16, 2010
I can't remove a file where I am owner of :
Code:
[jonas@webserver html]$ ls -l | grep file
-rw-rw-r-- 1 jonas jonas 3323 2010-03-15 20:33 file.php
[jonas@webserver html]$ rm file.php
rm: cannot remove 'file.php': Permission denied
The directory that holds this file is html :
Code:
[jonas@webserver mysite]$ ls -l
drwxr-xr-x 2 root root 4096 2010-03-15 18:32 cgi-bin
drwxr-xr-x 9 apache webusers 4096 2010-03-15 20:34 html
View 4 Replies
View Related
Mar 21, 2011
I used to use the root account for everything for more than a year then I moved to a user account for security reasons but almost all files had root as owner so I could not go 5 minutes without having to change to root and then change the owner of a file to my username to make it usable. I got fed up with this so I just changed the owner of every file on the system to my username instead of root.
command chown -R myusername * in the base directory /
Everything was fine until I restarted and the login screen became non functional and I got 2 error messages related to xsession and gnome errors. I think this is because the login screen might have its own user account and it cant access the files for the login process because it is owned by myusername. So my question is what is the user-name of the login account and what folders/files need to have their owner changed so the login process can work? I'm on 10.04 lucid.
View 6 Replies
View Related
Jun 11, 2010
This is about ubuntu 10.04
I can import projects to my cvs repository only when the repository set to group owner cvs. Which is fine to me.
But I found the project folder/files that I imported into the repository have group name other than cvs (in fact, that's my username). And that prevents others to check out my code.
View 3 Replies
View Related
Dec 13, 2010
What are the best file persmissions and owner for web files?
View 1 Replies
View Related
Mar 16, 2011
I'm interested in viewing the owners of files on a Windows Server 2003 share (mounted on a Linux computer). These "owners" would be users in Active Directory. If it's not possible to see the username, I wonder if it will at least show a unique identifier. Currently it says all files are owned by root with an "ls -l".
View 4 Replies
View Related
Mar 2, 2011
when i wget aro2220.com it displays
--2011-03-02 16:35:58-- url... 127.0.1.1
Connecting to aro2220.com|127.0.1.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 177 [text/html]
Saving to: 'index.html'
100%
2011-03-02 16:35:58 (12.4 MB/s) - 'index.html' saved [177/177]
However, when I look into the file it is actually blank saying something like "It works! This is the default web page for this server" which can't be correct since that is not what Aro2220.com actually displays.
Furthermore, when I try to wget files I've put on the server for myself it returns a 404, file not found.
View 3 Replies
View Related
Nov 25, 2010
I am trying to change the owner permission of file as "read only" when the file is rcp remote copy ) from server to another for security reason. Any way to change to permission as readonly access for owner and group ( 550 )when transfer the file using the rcp command ? I tested but still retain the original permission as source file.
Version : RHEL 5.2
Command : #rcp(local file)(/destinationserver/
/folder/file)
[code]....
View 3 Replies
View Related
Oct 11, 2009
Where is the SUDO file at, and remind me how do I add myself as a SUDO'er?
View 3 Replies
View Related
Apr 5, 2011
I want to automate my tasks of administrator using shell scripts like changing owner of a file which usually only the super user which requires password can change i want to do this thing using shell script how to do?
View 4 Replies
View Related
Aug 17, 2010
I am using wget to grep some data from a .htaccess protected website.I don't want to use the --http-user= and --http-password= variables in the script so I tried to create a ~/.wgetrc file.Whenever I run my wget script, it will never use the http_user and http_password examples to login to th website.
View 2 Replies
View Related
Dec 28, 2010
my secure log is flooding with these messages..
sudo: pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'hard'
Dec 28 22:42:29 yn54 sudo: pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'soft'
Dec 28 22:42:29 yn54 sudo: pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'hard'
View 3 Replies
View Related
Jun 19, 2011
If a wget download is interrupted (like if I have to shutdown prematurely), I get a wget.log with the partial download. How can I later resume the download using the data in wget.log? I have searched high and low (including wget manual) and cannot find how to do this. Is it so obvious that I did not see it? The wget -c option with the wget.log as the argument to the -c option does not work. What I do do is open the wget.log and copy the URL and then paste it into the command line and do another wget. This works but the download is started from the beginning, which means nothing in the wget.log is used.
View 2 Replies
View Related
Mar 7, 2010
i download files from megaupload and hotfile. is there any possibility of making wget download more than 1 file at a time? or do you suggest any other download programme? i have ubuntu 9.10
View 3 Replies
View Related
Mar 6, 2011
I would like to use wget to downlaod file from Redhat linux to my windows desktop , I tried some parameter but still not work , can advise if wget can do download file from linux server to windows desktop ? if yes , can advise how to do it ?
View 14 Replies
View Related
Jul 25, 2011
I have recently switched to using LXDE on my PC and I am on the whole pretty pleased with it. However,PCMan is giving me a really odd problem. Some of the files/folders are being displayed in the wrong order where they contain numbers. They are being ordered by their first digit not the whole number.
[Code]...
View 5 Replies
View Related
Dec 1, 2010
I would like to keep this simple and if possible use a piped command as opposed to an all out complex method.I have a script that does many things for me, and one of them builds a basic simple system report (I know about lshw, but this is for me to learn as well as be functional)
I would like to add another pipe to remove the"model name:" portion.I do not really want to use the store in a variable first solutions if I can help it.
View 7 Replies
View Related
Jun 1, 2011
Is there a simple way to save a video that appears in the /tmp directory as a pipe instead of a video file format? I was watching some of the old educational films on fluid dynamics from t the only evidence I see of a fileaSL_PIPE_500_SingleOfficeIPC_ff7ed09f7cfaad13bfa22 2a40c3fd37
View 2 Replies
View Related
Jun 21, 2010
is it recommended to download an iso file of fedora 13, will the file be destroyed?because i did it twice and it seems not working.
View 6 Replies
View Related
Jun 23, 2011
I was unable to find an answer to something that (I think) should be simple:
If you go here: [URL]
like so:
wget [URL]
you'll probably end up with a file called "download_script.php?src_id=9750"
But I want it to be called "molokai.vim", which is what would happen if I used a browser to download this file.
Question: what options do I need to specify for wget for the desired effect?
I'd also be ok with a curl command.
View 2 Replies
View Related
Jul 19, 2011
Example: [url]
This was what I tried...wget -A rar [-r [-l 1]] <mediafireurl>
That is to say, I tried with and without the recursive option. It ends up downloading an HTML page of a few KB in size, while what I want is in the range 90-100 MB and RAR.
What happens with MediaFire for those who may not be aware, is that it first says
Processing Download Request...
This text after a second or so turns into the download link and reads
Click here to start download..
How to write a proper script for this situation.
View 1 Replies
View Related
Jan 25, 2011
how can I define file type for wget to download . for example I do not want to download *.html or I just want to download *.jpg files . or if it does not support any of them do you know any other suggestion ?
View 1 Replies
View Related
Dec 1, 2010
I am calling a service using http post through wget, the command is successfully executing but for each execution its creating a file and saving variable names n data n it. I want to execute this command without creation of a file. Would anyone suggest me what needs to be done in this regard.
My command:
wget --post-data 'var1=99&var2=200' http://xyz.example.com:5555/invoke/Samples:httpInvoke
For every execution, its creating the files with names:
Samples:httpInvoke1
Samples:httpInvoke2
Samples:httpInvoke3
[Code]...
View 1 Replies
View Related
Jun 29, 2010
I use the
Code:
wget -r -A <extension> <site>
command to download all files from a certain site. this time i already have some of the files already downloaded and listed in a text file via
Code:
ls > <text file name>
How can i make wget to download from the site i want but ignore the filenames listed in the text file?
View 2 Replies
View Related
Aug 3, 2010
I am doing this project for our school. Basically we want to pipe all incoming emails to a script which filters out certain messages (not only spam but duplicates, large messages, etc). If they fail certain criteria, the script simply does nothing.If they pass , then the script should pass the entire message (headers and body) back on to qmail to send. The piping part is not a problem, but I am stuck with the next part. Is there a way to pass the headers and body back to qmail for it to process and send, as if it received it the first time?Some details:A catchall email account is created via Plesk control panel on linux (centos).THe .qmail file in /var/qmail/mailnames/domain.com/catchall/ is edited to include the line:-|/path/to/pipe/handler.phpThe handler.php file simply reads the entire message (headers and body) and they are then parsed and analysed.
View 2 Replies
View Related