Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running slackware 10.0 and I am wondering if anyone could tell me how as a user I could full access to my home directory that is in root while I am user? How could I modify permissions? I would appreciate help with this problem.
just to retrace my steps to make sure that we are on the same page, you have a user account that has a home directory directly under root, for example the user name of user, you have a folder
/user/
you want full access (read, write and execute) to this folder for everyone. I will assume that this folder already has some content in it, and that you want these changes to apply to all files that are already there, you would need to recursivly change the permisions of this folder and its content. For example:
chmod -R 777 /user/
this will only work as a user, if you have execute permision to your own folder. If not you will either need root access, or have someone with such access to change your premisions to your home folder.
OK, I may not have made the statement clear enough. the reference to /user/ was ment to be your user name (which is often, but not always, the name of the home directory), you mentioned that your home dir is in root, hence it should be off of / as shown. But to help eliminate confusion, I am going to ask you to log in as your user and from the command line type:
cd
pwd
The first of the above should take you to your home directory. The second will display the 'present working directory', which will be your home directory. Assuming that you have rights to this directory, you can take the output from pwd and run it through the chmod command mentioned above...
chmod -R 777 <insert output from pwd statement above>
the chmod command will allow you to change the persions to a file or folder, the -R informs the command to apply the calue recursivly, anf the 777 sets the persions to 7 (read, right and execute) for the owner of the file the members of the group for the file and everyone else.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.