Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
well, what i wan't is to configure it, i found a good ite: http://www.proftpd.org/docs/faq/link...h5.html#AEN452 but the proplem is that i can't open '/etc/proftpd.conf'
all i get is (in X) 'you don't have permission to read this file' or was it 'open this file'
anyway, i am using Mandrake 10.0, that followed a magasine called Linux Format and proftpd followed with it, and using KDE 3.2
-- mine is 644 for root:root, and i haven't touched it...
i'm sure we're all proud of you for using a non-root user for day-to-day tasks, but in this case you'll need more access rights. so logon to root from shell, and then you can edit that file...
chmod for change permission
chown for change ownership
let's see here, basic ascii-based permissions tutorial...
you have 3 realms, if you will...
1) owner
2) group
3) world
each has 3 permission groups
1) read
2) write
3) execute
now, string those all together, and you would look at it like:
rwxrwxrwx
--owner rwx followed by group rwx followed by world rwx
got that?
now, all those permissions can be either on or off, in binary a 1 or a 0
so let's turn everything on, and you get
--owner 111 group 111 world 111, or 111111111
convert those to decimal, where 111 = 7, and you get permission leve 777
take away write access from someone, and it would be 101, convert to decimal = 5... say we leave owner/group with full permissions, and take away write access from everyone else, we would now have permission level 775...
'chmod 111111111' or 'chmod 777'
if i wan't to take permission off, then i do:
'chmod 111111101' or 'chmod 775'
which will make the file be able to read and write for root and users, but not for the world, they can only read and execute, got that
so am i suposed to add the file name after like:
'chmod 774 directory_or_filename'
?
for more info... you can also use options like [ugoa]+x and [ugoa]-w, and limit those for each *group* if you prefer that over the decimal conversions method...
Quote:
with zero or more of the letters `ugoa';
these control which users' access to the file will be
changed: the user who owns it (u), other users in the
file's group (g), other users not in the file's group (o),
or all users (a)
wow, thanks guys
lol, i got some MAJOR proplem, in the folder, i had added a couple of files that i could modifie and read and so on, but take a look
# chmod 774 name_of_a_folder
#
ok i go to the folder and check the permission,, and i can modifie the folder, i enter, AND every file is locked, all i get is:
file/bla/folder_name/a_file doesn't seem to exist anymore
and i go to console and do:
vi nameoffile
and it seems to work
when i check the permission, then i get suprised, i can change the permission (in X, not in console) but i am only a user, so i check if i can modifie permission on the folder i just chager, and i get the normal (can't modifie)
sorry... kinda stopped reading after the thanx bit...
anyways...
ok, let's look at a scenerio, and you tell me if i'm understanding your problem:
you don't have access to a folder, so you chmod it, but you still don't have access to anyting in the folder... is this the case?
there is a 'recursive' option (-R) which you can use with both chmod and chown to recurse through directories into sub-directories, and hit every file along the way... but there is a danger to mention -- you must not start at too high a level, imagine what would happen if (as root) you ran
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.