Click to See Complete Forum and Search --> : suse 6.4 linux and wu-ftp


guelahpapyrus69
05-19-2000, 09:55 PM
i am new to this linux os and ftp application. I can't seem to get my ftp to work. i'm able to connect but not able to go any further into a directory etc.
my group settings
root:x:0:root
users:x:100:server

password file is set to
root:x:0:0:Super User:/root:/bin/bash
guest:server:100:92:Guest Account:/home./server:bin/bash

accessfile is
email ftpadmin@localhost

class all real, anonymous, guest *
limit all 10 Any /etc/ftpmsg.dead

readme Readme* login
readme Readme* cwd=*

shutdown /etc/shutmsg
message /welcome.msg login
message .message cwd=*

compress yes all
tar yes all

log transfers real inbound, outbound

noretrieve core .notar

any help would be graetly appreciated any more info will be supplied until you can't take it anymore.

also i feel i am semi intelligent so if anyone can tell me the meaning of the lines of code such as what does 100:92 etc. represent or any thing along those lines so i can work my way through this would also be appreciated

Dexter
05-20-2000, 01:43 AM
I don't know the answer to your question but you'd probably be better off posting it at: http://www.linuxnewbie.org/cgi-bin/ubbcgi/Ultimate.cgi?action=intro
or http://discussions.virtualdr.com/cgi-bin/forumdisplay.cgi?action=topics&forum=Unix&number=8

Good Luck!

furrycat
05-20-2000, 05:55 AM
I don't know about wuftpd but I'd be very surprised if it let you log in as root under its default setting. So I'll assume you're connecting as anonymous. You say you can't go any further into a directory. Well you won't be able to go up a directory because ftpd calls chroot() to effectively lock itself into the anonymous ftp directory. Any attempt to access directories higher in the directory tree will fail at a kernel level. A nice security feature. You SHOULD be able to see directories below the anonymous home provided they have the correct permissions. For your ftp daemon, this may mean they must be owned by the guest user: "chown guest directory"

You might try ProFTPD or another ftp daemon...

Anyway I CAN answer your other questions. The 100:92 refers to the user id (uid) and group id (gid)of the guest user. The user and group ids are numeric representations of the user for the purposes of setting permissions. When you call "chown guest file" you are actually calling "chown 100 file" and the system "knows" that file is associated with user 100. By looking in the passwd file or by using various system calls (don't worry about them unless you want to be a hairy hacker) you can see which user has which uid and so on. The root user is always uid 0. Having uid 0 is good. You can do pretty much anything.

Anyway, "man 5 passwd" for more gory details (and "man getpwuid" for gorier details still).

The groups file is similar: you can see the group name, the group id (notice that in your case the gid for users is 100) and then, optionally, a comma-separated list of users who are also in the group. This allows you to put some users in more than one group. Here, server is in group users as well as his default group. Why is this useful? Because it lets you assign privileges to a bunch (I don't want to say group here) of users together regardless of their gids. Example: assume bob and mary and in the users group. Make a new group called pppusers and put them in it. Now "chown root.pppusers /sbin/pppd" and "chmod 4750 /sbin/pppd" and bob and mary can call pppd. Yippee. Do some research if you want to know what the commands mean...

geekd
05-21-2000, 03:56 PM
Does the user you are logging into FTP as have permission to view the folders you are trying to go into?

drwxrwxr-x user:group pub

is what you probably want. That will let anyone read files and list the directory for pub, but only the user and group can write to it.

That would be a chmod 775 pub (as root)

-geekd