↓ Archives ↓

Why fstab's permissions are so important

Screenshot-6 Hey, folks! I had one problem some time ago. It was connected with mounting removable media. It didn’t work at all for non-root user. I set up /etc/group and /etc/passwd correctly, but it still didn’t work. I have known the /etc/fstab file, I have known what is this for, so I checked this configuration file out, too. It was correct. I really didn’t know what’s going on. Then I realized I made /etc/fstab file by myself, just like other configuration files. I often make files in other folder and then replace default files by my own files, especially when it is really needed. I had to grapple with fstab, because I had to migrate files from one partition to another, because of used file system.


The cause of these all issues was simple. Debian netinstall is based on kernel 2.6.26, so ext4 is not supported, so the result is you can install Debian netinstall only on ext3, but I’m owly, so I find out solution to run my Debian on ext4. Of course, I had to replace some files after moving data, one of these files was fstab. It has got restricted permissions, rw- — —. I couldn’t remember why was that so restricted. I changed permissions to rw- r– r– and everything has been OK now.

And here is my present /etc/fstab:

# proc /proc proc defaults 0 0
LABEL=root / ext4 relatime,errors=remount-ro 0 1
LABEL=boot /boot ext4 relatime 0 2
LABEL=home /home ext4 relatime 0 2
LABEL=mp3 /home/music/mp3 ext3 relatime 0 2
LABEL=rtorrent /home/rtorrent ext4 relatime 0 2
LABEL=usr /usr ext4 relatime 0 2
LABEL=programming /home/programming ext4 relatime 0 2
LABEL=books /home/books ext4 relatime 0 2
LABEL=photos /home/photos ext4 relatime 0 2
LABEL=videoclips /home/music/videoclips ext4 relatime 0 2
/dev/sda8 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

No Comment

Be the first to respond!

Leave a Reply