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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
hi, quick question: how do allow a specific user full permissions over a specific folder, subfolders, and files within? (read/write/exec/delete/etc). I've read a bunch of man pages and I'm more confused now than before, and I don't want to mess things without asking first
here is a little more in depth thingy-majiggy:
chmod owner|group|other <folder||file>
so, if you wanted lets say only the group, and the owner to be able to do Execute+Write+Read, and no one else you'd use:
chmod 770 <folder||file>
hope that helps..
(btw, if the directory you want to give access to the user isn't already the owner or atleast part of that group, use chown, or chgrp)
Permissions can be modified using chmod (options) filename
just an example...
' ls -l junk4 '
-rwxr-xr-x 1 foo bar 6514 Aug 1 10:34 junk4
the first set refers to user, second to group, third to other
user = rwx
group = r-x
other = r-x
I personally use numbers to change permissions but you can use the letters if the numbers don't make sense...
what the numbers mean:
0 = no permission
1 = execute
2 = write
4 = read
You can add the numbers to change the permissions to what you want.
so 1+4=5 = r-x
2+4=6 = rw-
1+2+4=7 = rwx
So if I want a file to have rwxrw-r-- permissions I would do chmod 764 filename
You can also change using letters
then use + - or = to what you want
so chmod a-x will remove execute permissions for all users
chmod u+rwx will add rwx to the user
check out the man page 'man chmod' it explains other options and flags you can use...
Maybe I need to type faster or something... Best advice is make a file and mess with permissions until you are comfortable...
Last edited by Blinker_Fluid; 10-10-2003 at 02:17 PM.
ok, i'm not sure what i did, i logged in as root and changed some permissions that it wudn't change b4 (even as su) and then went back to my user and then it let me save it soo, all's well that ends well thanks for ur help ppl!