help with clarifying directory permissions for ext3 mounted partitions
I have Ubuntu 7.04 and have recently also installed Xubuntu 7.10 - I use the same username ("erfahren") for both and am the only user.
for Ubuntu I have a root partition and a /home partition -- and for Xubuntu I have a root partition and a /home partition
- all the filesystems are ext3
I went by this tutorial to mount my Ubuntu /home partition in Xubuntu. I set the mount point as /mnt/ubuntu_home
at the bottom of that guide it says to set the permissions like:
I just recently noticed when using my Ubuntu 7.04 that all my files in my /home/erfahren directory were now set to be executable. I realized later that it was because of those permissions I set (the recursive part). - I have that part worked out (mostly) but if I reinstall or install another distro I'd like to have clarification on how to properly set the permissions.
sudo chown -R erfahren:erfahren /mnt/ubuntu_home
sudo chmod -R 755 /mnt/ubuntu_home
I have read that the permission to execute needs to be set on the directory itself in order to "access it", does that mean being able to read and write to it and its contents? - The reason I ask that is because a couple of guides gave an example of being able to list its contents and didn't mention reading and writing to it.
So would the proper way to set them be just "sudo chomd 755 /mnt/ubuntu_home" ? Would that allow me to read, write, delete, etc. the subdirectories and contents?
I've searched and came up with many guides related to mounting Windows partitions (and the like) and many on file permissions but none seemed to go into too much depth about mounting other Linux partitions and setting permissions.
oh, an example of the line in my (Xubuntu's) /etc/fstab - (could it be made differently to do what I want?)
thanks for any help
# ubuntu home
/dev/sda6 /mnt/ubuntu_home ext3 defaults 0 0