LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permissions issues (https://www.linuxquestions.org/questions/linux-newbie-8/permissions-issues-4175470565/)

liaml7 07-22-2013 09:06 PM

Permissions issues
 
1 Attachment(s)
As you can see in the image, the fourth folder owned by liaml7 and the group liaml7 has all permissions even to other users, it doesn't appear this way though. I keep trying to cd and create files in the folder but it says liaml7 doesn't have permissions. What am I doing wrong?
Attachment 13037

John VV 07-22-2013 09:14 PM

unless you are in the user group liaml7
that will not work

the user liaml7 needs to be in the users group
as root run
Code:

chown -R liaml7:users liaml7
that will change the permission on the folder "liaml7" to let users change it

unless this is a temp folder automounted in the /media folder
That is controlled by udev

liaml7 07-22-2013 09:19 PM

I figured it out... I had to change the permissions of /media folder.

John VV 07-22-2013 10:48 PM

All folders on / should be owned by root
owner = root
users = root

some os's will not let you boot if this is not true
SElinux kernel will through a fit ( if it is used )
/media is a folder for TEMPORARY file systems from auto mounted devices

if you need a device to mount as read/write by the normal user then mount it using fstab
automount will auto set it as read only by normal users and read / write for root

and if it might be in any usb slot ( as in it changes ) write a udev rule so it is always mounted to the same place


All times are GMT -5. The time now is 01:12 AM.