Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Update permisions

Got problems with your B2 or B3? Share and get helped!
Post Reply
Skovgaard
Posts: 3
Joined: 04 Mar 2011, 05:02

Update permisions

Post 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
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: Update permisions

Post 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
Skovgaard
Posts: 3
Joined: 04 Mar 2011, 05:02

Re: Update permisions

Post 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?
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: Update permisions

Post 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.
Skovgaard
Posts: 3
Joined: 04 Mar 2011, 05:02

Re: Update permisions

Post by Skovgaard »

Thanks worked perfect!

Christian
Post Reply