file permissions - insecure?

Soldato
Joined
7 Jan 2007
Posts
10,607
Location
Sussex, UK
Code:
drwxr-sr-x  9 dean media_write      4096 2009-07-02 10:44 24
drwxr-sr-x  8 dean media_write      4096 2009-06-30 17:02 
drwxr-sr-x  4 dean media_write      4096 2009-07-02 11:05
drwxr-sr-x  2 dean media_write      4096 2009-07-02 11:09 
drwxr-sr-x  3 dean media_write      4096 2009-07-02 11:09 
drwxr-sr-x  2 dean media_write      4096 2009-07-02 11:21 
drwxr-sr-x  4 dean media_write      4096 2009-07-13 22:06

Are these permissions for a storage drive insecure? I think what i have done is set the group permissions so that mediatomb can parse the data correctly and then stream them to my ps3.

My only concern is that I have done something insecure and will get hacked. My linux knowledge isn't great so hope I havent made my self wide open to attacks.

drwxr-sr-x is set throughout my /mnt/storage1 drive
 
I have set samba up to be user access only with a password and set the folders up for 755.

After googling I gound these commands:

Code:
sudo addgroup pubusers
sudo mkdir /pub
sudo chgrp pubusers /pub
sudo chmod g=rwx /pub
sudo chmod g+s /pub

http://ubuntuforums.org/showthread.php?t=296330

in ftp it now sets the write permissions for each folder but as soon as it goes down to a file level, the file still is only rw and mediatomb cannot play it. I'm so close its unreal!!!

Samba is ok as its set to set everything to 755 I beleive. So I can transfer files over samba.

I am only running rtorrent, sabnzbd, samba, mediatomb and an ftp deamon, do i just drop the ftp deamon and am i golden if i just keep updating debian?
 
Last edited:
yes I am.

how do i setup to have files mount as 644 at the moment they are only set to rw which is where I think this is all going wrong when I try uploading viat ftp.

rw is set in fstab, just need to change it to 644 then I think im golden?
 
Back
Top Bottom