LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   2 permission questions (https://www.linuxquestions.org/questions/linux-newbie-8/2-permission-questions-562667/)

Majusiak 06-18-2007 09:16 AM

2 permission questions
 
Ok... they're fairly simple.. but im a newb... so yeah.

1. How can i change the permission on a file/directory. Like... I have a folder on my desktop, and those folder can only be accessed by root... but i have an iso that i want to burn that is inside that foler... and i cant get to it with Nero.


2. On another harddrive i have all of my media. Music, videos, etc. And in order to open those files i have to use administration --> disks. a gui box pops up and asks for my root password. And i cant access it as a normal user. can i change that at all?

Brad.Scalio@noaa.gov 06-18-2007 09:31 AM

Quote:

Originally Posted by Majusiak
Ok... they're fairly simple.. but im a newb... so yeah.

1. How can i change the permission on a file/directory. Like... I have a folder on my desktop, and those folder can only be accessed by root... but i have an iso that i want to burn that is inside that foler... and i cant get to it with Nero.

You need to be root in order to change permissions on a file/dir owned by root - it is not "great" practice to make a dir world-writeable

# chmod 777 {dir name]

You should rather have that directory owner by a user within a group that contains the various other users on your system -- if it is just your computer, than whichever user you login as should own the directory and the permissions should be:

# chmod 755 [dir name]

Quote:

2. On another harddrive i have all of my media. Music, videos, etc. And in order to open those files i have to use administration --> disks. a gui box pops up and asks for my root password. And i cant access it as a normal user. can i change that at all?
By another hard drive do you mean a usb attached storage device or is your internal hard drive partitioned? It is two very different solutions, with the usb one being slightly easier by adding:

# groupadd --system usb

then adding your user to that group


All times are GMT -5. The time now is 04:10 AM.