Page 1 of 1

Update permisions

Posted: 04 Mar 2011, 08:26
by Skovgaard
Hi

Just recived my B3, so I am pretty new at this :-). How do I delete a folder which is full of files where the files are default set to read only permision. Is there a simple way to update whole libaries and files included in them to new permisions?

I am using the web interface /B

Christian

Re: Update permisions

Posted: 04 Mar 2011, 09:58
by Cheeseboy
Hello Cristian, and welcome to the forum!
How do I delete a folder which is full of files where the files are default set to read only permision. Is there a simple way to update whole libaries and files included in them to new permisions?
Yes, it is very easy, but not with the web interface, I'm afraid you'll have to get your fingers dirty with the proper interface :-)

1. Access the device with ssh:
http://wiki.excito.org/wiki/index.php/T ... er_via_SSH

2. Become root:

Code: Select all

su
The default password is excito.

3. As root (you can tell you are root by the # prompt) you can delete any directory recursively by:

Code: Select all

rm -R /path_to_dir
Please use caution! It WILL delete it without first asking you, and there is no restoring it. You must know what you are doing.

4. To change ownership:

Code: Select all

chown newowner /path_to_file
Or recursively:

Code: Select all

chown -R newowner /path_to_dir
Again, please be careful! You could easily destroy your system by doing these things the wrong way...

Cheers,

Cheeseboy

Re: Update permisions

Posted: 04 Mar 2011, 14:42
by Skovgaard
Ok

I have downloaded putty, but i can log in to my b3, It seems that user:admin pw:admin does not work`?

Also if i want to delete a folder

say /home/storage/music/test1 what is the code?

Re: Update permisions

Posted: 04 Mar 2011, 14:48
by Cheeseboy
Hi again,

You cannot log in as admin with ssh, it is a safety feature.
Create a user with the web interface, and check the "Shell login" checkbox.

Then log in with putty as that user.
Also if i want to delete a folder
say /home/storage/music/test1 what is the code?

Code: Select all

rm -R /home/storage/music/test1
That will remove the directory, all files in it, and all subdirectories and their files.

Re: Update permisions

Posted: 04 Mar 2011, 17:10
by Skovgaard
Thanks worked perfect!

Christian