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 !

Properties of storage directory

Got problems with your B2 or B3? Share and get helped!
Post Reply
manib
Posts: 5
Joined: 22 Dec 2010, 14:03

Properties of storage directory

Post by manib »

I have a strong feeling that something is messed up with my B2 /home/storage directory. I am the culprit :(
Can you please help me with answers:
a) What is initially content of this directory
b) Who is owner of /home/storage/, /home/storage/music and /home/storage/pictures
c) What permission must have /home/storage/, /home/storage/music and /home/storage/pictures

When I type ls -al /home/ and ls -al /home/storage I get:

drwxrwxrwt 7 root users 4096 2010-12-19 19:18 storage

drwxrwxrwx 2 someuser users 4096 2011-12-07 15:01 music
drwxrwxrwt 3 someuser users 4096 2011-12-03 11:13 pictures

Is it O.K.?
Thanks in advance.
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: Properties of storage directory

Post by Cheeseboy »

Hi Manib,

You should probably describe your problem here rather than ask for the "normal" settings.

I have probably messed up the permission/ownership settings on my Bubba2 as well, but as it is no longer in regular use, I don't know if it caused a problem or not.

Here goes...

Code: Select all

someuser@bubba2:~$ ls -ld /home/storage && ls -ld /home/storage/*
drwxr-xr-x 8 someuser users 4096 2010-09-16 09:39 /home/storage
drwxr-xr-x  2 someuser users 4096 2010-06-02 16:21 /home/storage/Android
drwxr-xr-x  4 someuser users 4096 2011-04-28 19:56 /home/storage/extern
drwxrwxrwt  4 someuser users 4096 2010-04-20 11:48 /home/storage/mounts
drwxrwxrwt 20 someuser users 4096 2010-08-07 12:25 /home/storage/music
drwxrwxrwt  2 someuser users 4096 2010-10-08 19:30 /home/storage/pictures
drwxrwxrwt  5 someuser users 4096 2010-02-21 00:01 /home/storage/video
Note the sticky bit (trailing t on the permissions). I remember modifying this specifically at one point in order to allow some kind of anonymous access to the server without write permissions. I think I just gave up/forgot about it, and the chmod/chown settings were just left there.

Here is B3:

Code: Select all

someuser@b3:~$ ls -ld /home/storage && ls -ld /home/storage/*
drwxrwsrwx 8 root users 4096 Dec  4 14:28 /home/storage
drwxr-xr-x  2 someuser users 4096 Jun  2  2010 /home/storage/Android
drwxrwsr-x  3 nobody users 4096 Dec  4  2010 /home/storage/extern
drwxrwxrwt  4 someuser users 4096 Apr 20  2010 /home/storage/mounts
drwxrwsrwx 21 nobody users 4096 Aug 15 22:24 /home/storage/music
drwxrwsrwx  2 nobody users 4096 Sep 13  2010 /home/storage/pictures
drwxrwsrwx  5 nobody users 4096 Dec  5 23:59 /home/storage/video
Notice that none have the sticky bit (except 'mounts' which I probably just replicated from the Bubba2. It is not a standard directory anyway...)

Cheers,

Cheeseboy
johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Re: Properties of storage directory

Post by johannes »

And here from a farily fresh installation:

Code: Select all

root@b3-demo:/# ls -l /home/
total 32
drwxr-xr-x  7 admin admin  4096 Nov 24 16:34 admin
drwx------  2 root  root  16384 Nov 10 09:09 lost+found
drwxrwsrwx 10 root  users  4096 Dec  8 17:04 storage
drwxr-xr-x 12 test  users  4096 Dec  6 11:42 test
drwxrwsr-x  6 root  users  4096 Dec  6 12:06 web

root@b3-demo:/home# ls -l storage/
total 24
drwxrwsrwx 3 nobody users 4096 Nov 23 14:27 Network Trash Folder
drwxrwsrwx 3 nobody users 4096 Nov 23 14:27 Temporary Items
drwxrwsr-x 4 nobody users 4096 Nov 23 14:27 extern
drwxrwsrwx 4 nobody users 4096 Dec  8 17:04 music
drwxrwsrwx 7 nobody users 4096 Nov 28 14:36 pictures
drwxrwsrwx 3 nobody users 4096 Dec  8 17:04 video
(Nevermind the Network Trash and Temporary items, this is crap left behind by apple computers.
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)
Post Reply