Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
|
12-01-2008, 08:13 AM
|
#1
|
Member
Registered: Jul 2007
Posts: 137
Rep:
|
CLI - How do i open vedio file with real player which is located in root directory?
path is
/root/limewire/saved
if i try to open it graphically, it doesnt give me permission. how can i open the limewire directory either graphically or by using cli?
|
|
|
12-01-2008, 08:17 AM
|
#2
|
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Rep:
|
You need root permissions or at least, sudo permissions. Do you have them?
|
|
|
12-01-2008, 08:41 AM
|
#3
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
Use the Root user to copy or Move the file into your user directory, after the file is moved, Change the ownership of the file to your user ( chown), then open it with your application.
Personally, I would relocate the limewire directory to another user/location, and not run it as root to begin with.
|
|
|
12-01-2008, 09:05 AM
|
#4
|
Member
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 329
Rep:
|
I have to agree with farslayer here , running limewire is bad enough , running it as root is a horrible idea. copy that dir over to a user dir and save yourself the security risk
Regards
JKZfixme
|
|
|
12-01-2008, 09:30 AM
|
#5
|
Member
Registered: Jul 2007
Posts: 137
Original Poster
Rep:
|
Quote:
Originally Posted by farslayer
Use the Root user to copy or Move the file into your user directory, after the file is moved, Change the ownership of the file to your user ( chown), then open it with your application.
Personally, I would relocate the limewire directory to another user/location, and not run it as root to begin with.
|
What are the commands for copying, cutting, pasting and moving the file or folders?
|
|
|
12-01-2008, 12:14 PM
|
#6
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
~$ mkdir /home/username/limewire
~$ mkdir /home/username/limewire/saved
~$ su -
password:
~# cp /root/limewire/saved/* /home/username/limewire/saved/
~# chown -R username:username /home/username/limewire/saved/
Verify everything exists in the new directory..
~# ls /home/username/limewire/saved/
then remove the limewire folders in roots home folder..
~# pwd
/root/
~# cd ./limewire/saved
~# rm *
~# cd ..
~# rmdir saved
~# cd ..
~# rmdir limewire
~# exit
~$
repeat the appropriate steps for any other directories in/under limewire
You would need to reconfigure limewire to use the new director[y/ies] you created in your user directory. I don't use limewire so I couldn't tell you how to reconfigure it.
alternately you could remove all the limewire stuff under root using the single rm -rf /root/limewire command, but if you mistype that command it could have more severe repercussions to your system.. for instance rm -rf / would attempt to delete every file on your system, including the operating system itself, and would have the ability and rights to do so so I opted for the long form of deletion for you (6 steps instead of 1) in the directions above...
|
|
|
12-01-2008, 12:45 PM
|
#7
|
LQ Newbie
Registered: Oct 2007
Distribution: SuSE, Redhat, Debian
Posts: 25
Rep:
|
Or maybe another trick:
If you have multiple partitions, say one data partition try:
mkdir /DATA/LimeWire/Saved
mkdir /DATA/LimeWire/Incomplete
mkdir /DATA/LimeWire/Shared
and then
ln -s /DATA/LimeWire/Saved $HOME/LimeWire/Saved
and the same for the other dirs
Do this for every user using Limewire
Bad thing is of course that any other users can see what you are downloading but it will make sure all your files go in one place.
|
|
|
All times are GMT -5. The time now is 02:19 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
|
|