LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-04-2007, 10:05 PM   #1
daTerminehtor
Member
 
Registered: Jan 2006
Location: Great White North
Distribution: openSUSE 10.2, openSUSE 10.3 (VM)
Posts: 44

Rep: Reputation: 15
torrent and permissions to /home


<meh>

Want/should be using rtorrent, I know. However, as this is my first install on a desktop (laptop's been running 10 for 1 1/2 years with no issues... no p2p though) I've a lot to manage, so for now... ktorrent it is.

Having said that... when loading existing torrents (which check out fine and show 100% complete) I get the following error...

Error: Cannot open <directory> permission denied.

So, it would seem that there are some writing (?) permissions that need setting to.

I modified the torrent folders permissions, adding a new named user (bin) as a long shot, which it turned out to be.

Google hasn't been any help.
 
Old 05-04-2007, 10:49 PM   #2
sydney-troz
Member
 
Registered: Feb 2007
Distribution: Kubuntu, it's obese barely-usable sibling, Ubuntu
Posts: 142

Rep: Reputation: 15
Quote:
I modified the torrent folders permissions, adding a new named user (bin) as a long shot, which it turned out to be.
Can you elaborate? How did you change the positions, what do you mean by "which it turned out to be"? What user is your torrent software running as?
 
Old 05-04-2007, 11:01 PM   #3
daTerminehtor
Member
 
Registered: Jan 2006
Location: Great White North
Distribution: openSUSE 10.2, openSUSE 10.3 (VM)
Posts: 44

Original Poster
Rep: Reputation: 15
I added a "named user" (under advanced)... bin (in the list...).
Thought it was a long shot.
It turned out to be (a long shot)... didn't work.

Regarding 'modifying', the folder where the torrents are stored, not the client.

Apologies.
 
Old 05-04-2007, 11:49 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Ktorrent runs under your users name, so if you have an other partition where you are storing it, make sure to change the ownership and permissions to match the permissions of your home directory.

What type of partition is it? Is it a Linux/Unix native filetype? If so then the directory you use to store the torrents can be changed with the chown and chmod commands. Also check that you have a sensible umask value. Did you add a umask command in your ~/.profile script? A directory needs the "x" permission bit set before you can enter it. ( Actually it is the umask value of the root user that is important because root would have been the user to create a new directory outside of anyone's home directory. )
 
Old 05-05-2007, 01:44 AM   #5
daTerminehtor
Member
 
Registered: Jan 2006
Location: Great White North
Distribution: openSUSE 10.2, openSUSE 10.3 (VM)
Posts: 44

Original Poster
Rep: Reputation: 15
I'm sort of following you, I believe though I am again not explaining myself.

The torrents themselves are in my /home directory (sub-folder actually).

ktorrent itself, is giving the error of not being able to access a file within a completed torrent.

As 10.2 is becoming my full time desktop, these torrents are all completed and I'm trying to get them up and running again after installing openSUSE 10.2.
I imported/opened a torrent and checked it. When that was complete, the following error under status...

Error: Cannot open /home/blah blah blah <file>: Permission denied.

Of course, these torrents are from my old windows box, and are archives and media files. Though, I don't think that should have any baring.

And, actually... the error refers to the /temp/cache folder location (also in the /bt folder within my home directory.

Now, I'm lost.
 
Old 05-05-2007, 01:58 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You need to examine the permissions of all of the files and directories in the torrent save directory. Since you copied them from elsewhere, depending on how they were copied or moved, and by who, the ownership or rights may be wrong or too restrictive.

Make sure you have rwx permissions on all the subdirectories.

Also check for any hidden files and directories as well.

Are new torrents OK?

Quote:
And, actually... the error refers to the /temp/cache folder location (also in the /bt folder within my home directory.
You may want to refer to them as directories and not folders. You using a real OS now!
It would help if you listed the directory names relative to your home directory or the torrent directory because I misread /temp/cache as /tmp/cache/. A path starting with "/" indicates a full path rather than a relative one, as in ~/torrents/temp/cache/.

Look at the permissions of the files and folders in the shell.
For example, "ls -ld ~/torrents" will show a long listing of the ~/torrents directory itself instead of listing the files inside the directory.

Last edited by jschiwal; 05-05-2007 at 02:08 AM.
 
Old 05-05-2007, 02:14 AM   #7
daTerminehtor
Member
 
Registered: Jan 2006
Location: Great White North
Distribution: openSUSE 10.2, openSUSE 10.3 (VM)
Posts: 44

Original Poster
Rep: Reputation: 15
argh...

I had reviewed the permissions of some of the files in the directory <g>, but apparently it did not take, or, more likely... I didn't double check.

However... after setting permissions at the ~/incoming/bt rather than ~/incoming/bt/cache (where the error originated), permissions were set properly and am importing the remaining torrents now.

Meh... you think I'd let one of my teens move the files? <g>

Thanks for the help!
 
Old 05-05-2007, 03:06 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you had been using ACLs then we would really have had some fun!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Home folder permissions carnold SUSE / openSUSE 5 04-22-2007 10:50 PM
restoring permissions to my home bl0tt0 Slackware 1 12-06-2006 07:01 PM
permissions in /home meem Linux - Newbie 1 02-15-2005 01:55 PM
Permissions for /home Fredstar Linux - Newbie 2 11-24-2004 02:45 AM
Help with /home/~user permissions bullshit Linux - Networking 7 05-14-2004 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration