Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-05-2009, 03:29 PM
|
#1
|
LQ Newbie
Registered: Mar 2009
Posts: 29
Rep:
|
Ubuntu 8.10 and want to download 2 GB file in command line.
Hi all,
I m running Ubuntu 8.10. I want to download 2GB file logging in as root in GUI, because another user's home directory has only 8GB space which is full. And it does not allow me to save file anywhere else as root is the owner of every other directory except /home/user1(which is full)
Would it be fine if i login as root in gui, connect to internet and download huge data?
Thanks
|
|
|
04-05-2009, 03:31 PM
|
#2
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
why don't you login as user, open a terminal, become root, go to the directory where you want to safe the file and use wget
|
|
|
04-05-2009, 04:24 PM
|
#3
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
There shouldn't be any problem if you are going to use only wget. However, you could also create a temporal directory in a place where there's space, give the user permissions over it and use your regular user to download the file.
Code:
su
Password: # type your root password
mkdir /downloads
# this will grant permissions for ALL the users
chmod 777 /downloads
exit
# now you are a normal user again
cd /downloads
wget http://whatever
You can stop the download with control+c, and resume it using wget -c http://whatever
Last edited by i92guboj; 04-05-2009 at 04:26 PM.
|
|
|
04-05-2009, 05:17 PM
|
#4
|
LQ Newbie
Registered: Mar 2009
Posts: 29
Original Poster
Rep:
|
thanks for reply....but when i use wget , it just saves something to get_form and no download starts.
please help.....
Last edited by chandan766; 04-05-2009 at 05:26 PM.
|
|
|
04-05-2009, 05:33 PM
|
#5
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
That url doesn't point to any real file. It runs a php script with some arguments, and I can't even enter it because it will redirect me to an error page. You would need to use a real url pointing to the file you want to download.
PS. You could try a text browser, like elinks or w3m. They should be safe to use as root as long as you don't enable javascript (I don't remember if they support such thing anyway).
Last edited by i92guboj; 04-05-2009 at 05:34 PM.
|
|
|
04-05-2009, 10:13 PM
|
#6
|
LQ Newbie
Registered: Mar 2009
Posts: 29
Original Poster
Rep:
|
Thanks but i have to supply first my credentials , only then i can proceed to download and the link i talked about is the only link to download. Is it not safe to login as a root from gui and download and save the file where i want? Is it not safe to download through GUI at all?
Thanks.
|
|
|
04-05-2009, 10:21 PM
|
#7
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
There's absolutely no need to login as root. Just login as a regular user, then open a terminal and use su to become root, or sudo to launch your browser as root.
|
|
|
04-05-2009, 10:58 PM
|
#8
|
LQ Newbie
Registered: Mar 2009
Posts: 29
Original Poster
Rep:
|
after i opened the terminal and become root,,,,what should be next step? I m kinda new to this Linux.
|
|
|
04-05-2009, 11:12 PM
|
#9
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by chandan766
after i opened the terminal and become root,,,,what should be next step? I m kinda new to this Linux.
|
Just launch your preferred browser, for example firefox, opera or whatever. Usually just typing its name and pressing enter.
|
|
|
04-05-2009, 11:18 PM
|
#10
|
LQ Newbie
Registered: Mar 2009
Posts: 29
Original Poster
Rep:
|
Thanks a lot.....I just followed alll ur steps about terminal and launching the firefox.....thanks a tonne. Is this equivalent to downloading as another user? Also is there any security threat as I have not installed antivirus on Linux?
Last edited by chandan766; 04-05-2009 at 11:19 PM.
|
|
|
04-05-2009, 11:26 PM
|
#11
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by chandan766
Thanks a lot.....I just followed alll ur steps about terminal and launching the firefox.....thanks a tonne. Is this equivalent to downloading as another user? Also is there any security threat as I have not installed antivirus on Linux?
|
Well, when you use su or sudo, you efectively become root, with all that that implies. Running as root should be limited only to strictly needed situations. I would still use the method I suggested you above: create a directory that all the users can write into, and then download using firefox or whatever.
If you are responsible enough and your software is up to date nothing bad should happen. Still, the more complex software you run as root the more risk of hitting a vulnerability or a fatal bug. Think that when you run firefox as root, any javascript you run is also run as root. That means that any casual attack coming from a javascript snippet running in firefox has god-like powers over your system. Just like crappy ActiveX under windows, and you can imagine what does that mean.
Antiviruses and firewalls can't help with that, here or in windows.
That's why it's usually not recommended to run GUI stuff as root. Text programs are simpler and less likely to expose your system to a casual attacker.
|
|
|
04-06-2009, 09:27 AM
|
#12
|
LQ Newbie
Registered: Mar 2009
Posts: 29
Original Poster
Rep:
|
I created directory and have given permissions to all. Now am logged in as a user in GUI and downloading all the files into that directory which i created.
Thanks a lot but,, you were of great help.....
|
|
|
04-06-2009, 09:37 AM
|
#13
|
Senior Member
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669
|
=quote=
Now am logged in as a user in GUI and downloading all the files into that directory which i created.
Thanks a lot but,, you were of great help.....
=endquote=
chandan766:
A better way of complimenting a helpful senior member is to click the "thumbs-up" button at the lower right.
malek
|
|
|
All times are GMT -5. The time now is 08:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|