hdd mount permissions (fstab?) Debian lenny
Hi,
This is what I have done so far: Code:
sudo addgrp media_write Code:
sudo chmod g=rwx /mnt/storage1/ Code:
# /etc/fstab: static file system information. Code:
ls -l |
I'd have done...
Edit the group and shaddow group file Code:
$ sudo vigr Code:
$ sudo find /mnt/storage1 \( -type f -exec chmod 660 {} \; \) , \( -type d -exec chmod 770 {} \; \) |
The permissions are masked by your `umask' setting, after the file is created. Change it by putting:
umask 0002 in your ~/.profile script. |
Quote:
Unfortunetly I am still haveing problems. Adding umask=022 within /home/dean/.profile does nothing. All files I upload to /mnt/storage1/ still have only rw permissions. What else do you suggest? |
I think I have been a muppet lol. I run vsftpd as an ftp server, I didn't realise that I needed to comment out #local_umask=022 lol.
This is why ftp always uploaded as rw I think. How do I reset all permissions on /mnt/storage1 I have created quite a mess and think its best if i reset and have some sensible permissions of 644 throughout. |
find /mnt/storage1 -type f -exec chmod 0644 '{}' \;
find /mnt/storage1 -type d -exec chmod 0755 '{}' \; You can't simply use: chmod -R 0644 /mnt/storage1/* because that would remove the 'x' permission bit from directories. On directories, this allows you to cd into them. For files it marks them as executable. |
All times are GMT -5. The time now is 05:55 PM. |