Root access

Root access

Postby ScreamerMM » Sun Oct 09, 2011 10:07 am

Hello all

I'm new here. I have successfully installed the custom firmware on my NS2, and it works like a charm.

However i'm having a bit of a problem with user access. When i map the different shares to a network drive in windows 7, i can't delete the files in there, i only have read access. Specifically for the torrent download folder. How do i gain access? The user i have created has a check in full access for all shares under options? I can read all files fine, but not change them.

Hope you can help.

Kind regards
ScreamerMM
ScreamerMM
 
Posts: 2
Joined: Fri Sep 30, 2011 5:10 pm

[BUG] Transmission folders read-only

Postby matigev » Sun Oct 09, 2011 12:31 pm

I have the same problem with the \\SHARE\tr-*\ folders. It says file in use or no permissions.
I don't map the network drive. I tried stopping minidlna and transmission but the error remains.
Logged in as a user with "full access" to everything.
matigev
Donator VIP
Donator VIP
 
Posts: 48
Joined: Fri Sep 30, 2011 7:52 pm
Location: NL

Re: Root access

Postby fvdw » Sun Oct 09, 2011 12:50 pm

yep this is a know issue the transmission daemon stores the file as user root with only read access for others as result you can not delete them via samba server (the one used to access the nas via windows explorer)

Still need to modify that with button or so in the web interface
To solve it right now you need to access the nas via SSH, you can use the ssh client Putty that runs under window

login with username: root
password: giveit2me
(givit2me is the default password, if you have changed ssh access password yourself via the web interface than use that one ;) ps the ssh password is not the same as the administrator password you have set for the web interface)

When getting the command prompt type
Code: Select all
chmod -R 777 /share/1000/tr-downloads


now you should be able to delete them for users having read/write access

sorry for the inconvenience

ps needles to say that new files stored after giving the above command will again have the wrong permissions, the command only resets the permissions for files present in that folder at the moment of issuing the command
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Root access

Postby matigev » Sun Oct 09, 2011 12:56 pm

thanks for the quick reply!
It worked! I tried setting my user to read-only and back to full access in the File share menu of the Web Interface and that worked also.
But you will have to do that for each user and tr-share.
matigev
Donator VIP
Donator VIP
 
Posts: 48
Joined: Fri Sep 30, 2011 7:52 pm
Location: NL

Re: Root access

Postby fvdw » Sun Oct 09, 2011 1:08 pm

matigev wrote:thanks for the quick reply!
It worked! I tried setting my user to read-only and back to full access in the File share menu of the Web Interface and that worked also.
But you will have to do that for each user and tr-share.


when using the CHMOD command as specified on the specific folder it will be ok for all users you defined, but yes in the web interface you have to set read/write rights for every user
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Root access

Postby greekfrixos » Mon Oct 10, 2011 1:59 pm

I don't think it's wrong for the files in tr-d* folders have these permission, and I wouldn't recommend to change them.
You can manipulate these files other ways.

The average window user can:
1. copy the files to another location using windows network folders
2. manipulate torrents (including DELETING torrents AND FILES) using http://code.google.com/p/transmisson-remote-gui/
greekfrixos
 
Posts: 4
Joined: Wed Sep 07, 2011 11:39 am

Re: Root access

Postby ScreamerMM » Mon Oct 10, 2011 4:11 pm

Thank you all for the replies...

It is nice to know i have the SSH option, but i actually went with greekfrixos solution, nice to have a real program that can interact with the Transmission server.

You just delete torrent+data to get rid of the files after you have copied it to public or where ever.

Remember not to put http:// in front of the server IP address when adding it to the program.

Thanks again!
ScreamerMM
 
Posts: 2
Joined: Fri Sep 30, 2011 5:10 pm

Re: Root access

Postby fvdw » Mon Oct 10, 2011 10:03 pm

great tip guys thanks,
I forgot about this option of using Transmission remote gui. I build in all required files for that and indeed it works.
I agree this is much easier and user friendly to use and communicate with the transmission daemon on the NAS from your PC.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Root access

Postby matigev » Tue Oct 11, 2011 9:20 pm

greekfrixos wrote:I don't think it's wrong for the files in tr-d* folders have these permission, and I wouldn't recommend to change them.
You can manipulate these files other ways.

The average window user can:
1. copy the files to another location using windows network folders
2. manipulate torrents (including DELETING torrents AND FILES) using http://code.google.com/p/transmisson-remote-gui/


Copying the files takes a lot of time. Internal copies on the drive only maxed out 1MB/sec.
The daemon sanitizes its own folder on shutdown, so permissions are reset on the tr-daemon share.

I just found out this:
changing
Code: Select all
"umask": 18,
to
Code: Select all
"umask": 0,
in the settings.json (don't forget to stop server first).
Now the files on the tr-downloads share will have for default all permissions for all users.
Not recommended maybe, but I want to keep my downloads organized inside the download folder.


I also found out the web interface was still running although the daemon stopped when i press the stop server button.
Is it possible, for a future release, to stop that simultaneously or seperately?
matigev
Donator VIP
Donator VIP
 
Posts: 48
Joined: Fri Sep 30, 2011 7:52 pm
Location: NL

Re: Root access

Postby greekfrixos » Sat Oct 15, 2011 8:38 pm

The windows users can also take a look to http://winscp.net/eng/docs/screenshots for file manipulation,
greekfrixos
 
Posts: 4
Joined: Wed Sep 07, 2011 11:39 am


Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 10 guests