I just created a new user, and I want to give access to a folder.
I have done:
chmod -R 777 ./p
and this is the result
lisa@linux:/media$ ls -halt
drwxr-xr-x 27 root root 4,0K dic 11 11:57 ..
drwxrwxrwx+ 3 pierpaolo utenti 4,0K dic 8 23:48 p
drwxr-xr-x 3 root root 4,0K set 10 12:20 .
lrwxrwxrwx 1 root root 45 ago 5 01:22 .directory -> /etc/kubuntu-default-settings/directory-media
But still, i can not cd in to the folder (permission denied). Any idea how to approach this problem or debug it?
Edit:
getacl gives:
# file: p
# owner: pierpaolo
# group: utenti
user::rwx
user:pierpaolo:r-x
group::---
mask::rwx
other::rwx
Edit: The folder i want to access by the new user is a second hard disk that has been mounted in /etc/fstab using the following command:
UUID=FEB222A8B222657D /media/p/Seagate ntfs-3g defaults,windows_names,locale=it_IT.UTF-8 0 0
+
at the end of flags. List them withgetfacl
and/orlsattr
./media
is a strange dir anyway, it is normally managed byudsiks
--- why do you want to do things there? (Notice that these are normal settings set byudisks
--- they are there so that when you mount a device only you have access to it).fstab
, and I would mount it out of the/media
directory. About giving access to more user, it depends too on how the disk is formatted. See help.ubuntu.com/community/InstallingANewHardDrive and askubuntu.com/questions/303497/adding-an-entry-to-fstab (and search for more, I am sure there are plenty here).