Page 1 of 1

can't delete files

PostPosted: Sat Jan 14, 2017 10:26 pm
by kicsrules
i'm trying to delete file/folder but i get permission denied, i lost my ssh password so can't access that way, only ftp and normal samba share.... says that user/nobody only has access

it is in a .sync folder (hidden) probably from rsync :/


anyway to change permissions on those files ?

Re: can't delete files

PostPosted: Sat Jan 14, 2017 10:38 pm
by kicsrules
update: says "you require permission from unix user\root to make changes to this folder"

Re: can't delete files

PostPosted: Sat Jan 14, 2017 11:03 pm
by fvdw
Installing again the firmware will reset the ssh password to the deault value.

Re: can't delete files

PostPosted: Sun Jan 15, 2017 10:16 am
by Jocko
Hi kicsrules,

Anyhow, you can directly restore permissions from the web-interface ;) :
- load the backup menu
- select the (sub)folder where you have issue on the field "Selected Destination Folder"
- click on "Restore permissions on the selected folder"

That all...
Then you should be able to delete the files via ftp or samba

Re: can't delete files

PostPosted: Mon Jan 16, 2017 8:32 pm
by kicsrules
well, it didn't work, selected (on the right side) the folder that had problems, click on restore permissions and nothing happened....

edit: clicked accept and everything got erased on that folder.... :/
now its a backup of the drive in that folder, good thing that was a backup only...

Re: can't delete files

PostPosted: Mon Jan 16, 2017 10:08 pm
by Jocko
kicsrules wrote:edit: clicked accept and everything got erased on that folder.... :/
now its a backup of the drive in that folder, good thing that was a backup only...
:pound :pound :pound
Of course if you backup an empty folder then destination will be empty!

kicsrules wrote:well, it didn't work, selected (on the right side) the folder that had problems, click on restore permissions and nothing happened....
Indeed the feature is broken on version 16.1, so you have to upgrade again the firmware as fvdw wrote

Re: can't delete files

PostPosted: Tue Jan 17, 2017 3:55 pm
by kicsrules
applied the cron command, i know there are more folders with permissions like this, in this case i will try to chance premissions for all the NAS files, i'll reboot later

Re: can't delete files

PostPosted: Tue Jan 17, 2017 4:36 pm
by kicsrules
how can i check if the files changed permission ?

applied

chmod -R 777 (directory)

Re: can't delete files

PostPosted: Tue Jan 17, 2017 5:05 pm
by Jocko
Hi kicsrules,

kicsrules wrote:i will try to change permissions for all the NAS files, i'll reboot later

I hope you applied your command only on subfolder in /share (like /share/1000/xxxx)
On the firmware side some files or folders must keep special permissions (otherwise some daemons won't start later (eg when you reboot the NAS)

Re: can't delete files

PostPosted: Tue Jan 17, 2017 8:46 pm
by kicsrules
yes...

only the public folder

share/1000/<thisfolder>