Setting up vsftpd?

Hi, I want to share some files on the LAN with a windows user, so I
thought ftp would be easiest.

I downloaded vsftpd and system-config-vsftpd, so that I could set it up
in an UI.

But how do I start it?


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Have a read ‘here’
(http://www.ferdychristant.com/blog/articles/DOMM-6FJMR9)

/Geoff


Core 2 Duo 3.16GHz, 4GB DDR2, 2.5TB, GeForce 7600 GS, OS 11.1
x86_64, KDE4.2 RC1 (77.4) ‘Smolt specs’ (http://tinyurl.com/9hgxhl)

geoffro’s Profile: http://forums.opensuse.org/member.php?userid=75
View this thread: http://forums.opensuse.org/showthread.php?t=405273

That is commandline, I really wanted to go graphical…

I get into trouble with the guide there when I have to edit
vsftpd.conf, I can’t get the rights to edit it.

/etc/vsftpd.conf

How do I open it? I tried via terminal.

Code:

linux-vu9d:/home/lasse # kdesu kwrite /etc/vsftpd.conf
kdesu: cannot connect to X server


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Went over to proftpd as I have used that before, however, I get the same
message there when I try to edit a file.


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

I know this may be a dumb question but can we confirm that X up and
running on the machine?

The reason I ask is that I’ve run into this type of message before but
usually only when either I’m at run level 3 (i.e., no X running) or when
I’m ssh’ed into another machine and forgot to pass the -X flag to ssh
when I connected. The -X tells ssh to forward X connections to my
local machine.


yu210148

yu210148’s Profile: http://forums.opensuse.org/member.php?userid=19157
View this thread: http://forums.opensuse.org/showthread.php?t=405273

lasse@linux-vu9d:/etc> startx
xauth: creating new authority file /home/lasse/.serverauth.19479

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Used kdesu kwrite instead. No issues at the moment :slight_smile:


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Humm, any thing interesting (errors, warnings?) in /var/log/Xorg.0.log?


yu210148

yu210148’s Profile: http://forums.opensuse.org/member.php?userid=19157
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Nope, but please see.

‘How do I know if I have the correct videodrivers? - Page 2 - openSUSE
Forums’ (http://tinyurl.com/8auku6)

They might be related?


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Getting it again now :S

linux-vu9d:/home/lasse # kdesu kwrite /etc/shells
kdesu: cannot connect to X server


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

lasse@linux-vu9d:~> xhost +
access control disabled, clients can connect from any host
lasse@linux-vu9d:~> kdesu kwrite /etc/proftpd.conf

Then it works!


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Try su then kwrite /etc/vsftpd.conf

/Geoff
lassenc;1929164

code Wrote:
> linux-vu9d:/home/lasse # kdesu kwrite /etc/vsftpd.conf
> kdesu: cannot connect to X server


Core 2 Duo 3.16GHz, 4GB DDR2, 2.5TB, GeForce 7600 GS, OS 11.1
x86_64, KDE4.2 RC1 (77.4) ‘Smolt specs’ (http://tinyurl.com/9hgxhl)

geoffro’s Profile: http://forums.opensuse.org/member.php?userid=75
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Never had so many issues installing a simple ftp server, this is
brainbreaking.


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

geoffro;1929161 Wrote:
> Have a read ‘here’
> (http://www.ferdychristant.com/blog/articles/DOMM-6FJMR9)
>
> /Geoff

Wuhu, I got it working now, the local test atleast :slight_smile:

Code:

lasse@linux-vu9d:~> kdesu kwrite /etc/vsftpd.chroot_list
^C
lasse@linux-vu9d:~> ftp localhost
Trying ::1…
ftp: connect to address ::1: Connection refused
Trying 127.0.0.1…
Connected to localhost.
220 Welcome to the s3maphor3 FTP service
Name (localhost:lasse): ftpadmin
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.



lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Great all you have to is check with a ftp client filezilla is really
good

/Geoff
lassenc;1929429 Wrote:
> Wuhu, I got it working now, the local test atleast :slight_smile:
>


Core 2 Duo 3.16GHz, 4GB DDR2, 2.5TB, GeForce 7600 GS, OS 11.1
x86_64, KDE4.2 RC1 (78.1) ‘Smolt specs’ (http://tinyurl.com/9hgxhl)

geoffro’s Profile: http://forums.opensuse.org/member.php?userid=75
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Trying to figure out how to chmod the /srv/ftp so I also have the
read/write access.

And also trying to figure out how to set up logs. My friend (on a LAN)
can’t connect, and I can’t see any logs.

I activated logging via the graphical administrator tool and they
should have been put in /var/log/, but they’re not present.


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

If you set it up as in the guide you should be able to get access:
‘vsftpd on Suse Linux pro’
(http://www.ferdychristant.com/blog/articles/DOMM-6FJMR9)
> # create a FTP user group
> groupadd ftp-users
> # make the new FTP root dir accessible for ftp-users
> chmod 750 /srv/ftp
> chown root:ftp-users /srv/ftp
> # add new ftpadmin user to group and set its home dir to the FTP root
> useradd -g ftp-users -d /srv/ftp ftpadmin
> # set password of new ftpadmin user
> passwd ftpadmin
> # give read/write access to the FTP root dir
> chmod 770 /srv/ftp


Core 2 Duo 3.16GHz, 4GB DDR2, 2.5TB, GeForce 7600 GS, OS 11.1
x86_64, KDE4.2 RC1 (78.1) ‘Smolt specs’ (http://tinyurl.com/9hgxhl)

geoffro’s Profile: http://forums.opensuse.org/member.php?userid=75
View this thread: http://forums.opensuse.org/showthread.php?t=405273

I see how the access is given to user “ftpadmin” but what do I need to
edit in order for user “lasse” to get same access?


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273

Ok the easiest way is to create a user lasse in a console as su:
USERADD -R LASSE THEN
**PASSWD LASSE
Now go to kicker > applications > system > file manager > file manager

  • super user mode
    Brows to /srv/ftp and right click on folder and choose properties >
    permissions > advanced > add entry > named user and select lasse ftom
    the list

/Geoff
ps Heter lasse Lars :wink:


Core 2 Duo 3.16GHz, 4GB DDR2, 2.5TB, GeForce 7600 GS, OS 11.1
x86_64, KDE4.2 RC1 (78.1) ‘Smolt specs’ (http://tinyurl.com/9hgxhl)

geoffro’s Profile: http://forums.opensuse.org/member.php?userid=75
View this thread: http://forums.opensuse.org/showthread.php?t=405273

**

Just changed it to Read and write for “Other people” the last of the
three entry thingies there are.


lassenc

lassenc’s Profile: http://forums.opensuse.org/member.php?userid=19830
View this thread: http://forums.opensuse.org/showthread.php?t=405273