Even though i have permission as root still i am getting 500 OOPS: config file not owned by correct user, or not a file

Screenshot (21)

run it as sudo ./vsf…
you have missed using ./ in your second case when you tried it along with sudo

1 Like

After that, it is blinking for a long time on a blank line.

Yep…it is working now. Open a new terminal and to confirm it is working you can use netstat or ps (ps -ef) combined with grep(for easy reading). You can see vsftpd running.

In your new terminal run ftp…and do all other milestone tasks.

1 Like

I see, its working now.

from where I can get password to use sudo, didn’t find it anywhere

it would be kind if you may tell from where can I find password

Hey,…once your Crio Workspace gets loaded, you will find your password in the same page, along with username and your machine’s IP address.

If you have already opened the virtual machine…then click on goto workspace on top of the page.

1 Like

1.Hey may you tell what’s wrong in approach like first I became a root user to execute the file than also it gave me error 500, as you can see $ is replaced by # below

root@divyashahi139:/home/crio-user/workspace/QBox# sudo ./vsftpd_v1 vsftpd_v1.conf
500 OOPS: config file not owned by correct user, or not a file

  1. I tried above approach then also it’s giving me error 500 what am I missing

crio-user@divyashahi139:~/workspace/QBox$ sudo chown root vsftpd_v1
[sudo] password for crio-user:
crio-user@divyashahi139:~/workspace/QBox$ ls -l
total 212
-rwxr-xr-x 1 root crio-user 139448 Jan 3 06:01 vsftpd_v1
-rwxr-xr-x 1 crio-user crio-user 4593 Jan 3 06:00 vsftpd_v1.conf
-rw-r–r-- 1 crio-user crio-user 65035 Feb 6 09:32 vsftpd_v1.tar.gz
crio-user@divyashahi139:~/workspace/QBox$ sudo ./vsftpd_v1 vsftpd_v1.conf
500 OOPS: config file not owned by correct user, or not a file
crio-user@divyashahi139:~/workspace/QBox$ sudo ./vsftpd_v1 ./vsftpd_v1.conf
500 OOPS: config file not owned by correct user, or not a file

@divs30 You have given root access to vsftpd_v1 but vsftpd_v1.conf doesn’t have root access. Config file is the one for which you should give root access. Give it root access and it will work.

you mean I should make .conf file my root using chown instead of vsftpd

yes. Giving root access to .conf is must.
you need not give root access for vsftpd_v1

1 Like

Thanks a lot it helped now I can move ahead, was stuck in it for long:)

1 Like

but it seems that terminal has froze ,

If at all you mean that the terminal is not showing any output on running that command( sudo ./vs…), it’s working fine. All you have to do is open a new terminal and proceed.

make sure vsftpd_v1 is running. use this command : pidof vsftpd_v1

check this: