Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-01-2004, 12:05 PM
|
#1
|
Member
Registered: Oct 2004
Location: Iceland
Posts: 94
Rep:
|
editing settings n proFTP(daemon)
can someone help me configuring proFTPd?
|
|
|
11-01-2004, 02:13 PM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
the manpage can:
if you want help here, be more specific...
|
|
|
11-01-2004, 03:23 PM
|
#3
|
Member
Registered: Oct 2004
Location: Iceland
Posts: 94
Original Poster
Rep:
|
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
|
|
|
11-01-2004, 03:28 PM
|
#4
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
Code:
ls -l /etc/proftpd.conf
-- 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...
|
|
|
11-16-2004, 12:02 PM
|
#5
|
Member
Registered: Oct 2004
Location: Iceland
Posts: 94
Original Poster
Rep:
|
well, how do i change permission in console?
i wan't to be able to change permission on a file (or a folder)
a normal user be able to read and write into a file
and change the permission on a folder from 'view content' to 'modifie and view content'
|
|
|
11-16-2004, 12:14 PM
|
#6
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
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...
follow?
|
|
|
11-16-2004, 03:36 PM
|
#7
|
Member
Registered: Oct 2004
Location: Iceland
Posts: 94
Original Poster
Rep:
|
so if i wan't to change permision, then i do:
'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'
?
BlackMan890
|
|
|
11-16-2004, 03:41 PM
|
#8
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
Quote:
chmod 774 directory_or_filename
|
yup, you use the decimal, that's why i breifly went through those conversions -- the quoted gets you permissions rwxrwxr--
you will about never use permissions 777
now, root will have access, no matter what... the first grouping is for the owner of the file... you can change that using
Code:
chown user:group file
|
|
|
11-16-2004, 03:46 PM
|
#9
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
more: try using 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)
|
|
|
|
11-16-2004, 04:25 PM
|
#10
|
Member
Registered: Oct 2004
Location: Iceland
Posts: 94
Original Poster
Rep:
|
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)
what happened?
|
|
|
11-17-2004, 10:30 AM
|
#11
|
Member
Registered: Oct 2004
Location: Iceland
Posts: 94
Original Poster
Rep:
|
bump
-=*bump*=-
|
|
|
11-17-2004, 03:29 PM
|
#12
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
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 i bet that'd really bugger things.
|
|
|
All times are GMT -5. The time now is 01:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|