LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   VSFTPD.conf (https://www.linuxquestions.org/questions/linux-networking-3/vsftpd-conf-273521/)

Malkaven 01-03-2005 10:06 PM

VSFTPD.conf
 
Im new to linux. Im using fedora core 3.
Im trying to get a ftp server up. Ive installed
vsftpd and the service is running, i can even log on my
server annon.

I want to edit the vsftpd.conf file so i can
setup my server but the vsftpd.conf file wont let me edit
or modify, or even view. say i dont have the permissions for this.
does this make sense for anyone? trying to edit the one in
/ect/vsftpd/vsftpd.conf.

zaicheke 01-03-2005 10:09 PM

You probably don't have the permissions. I'm assuming your doing this on a non root account. You can either edit it as root or chmod it as root.

Malkaven 01-03-2005 10:25 PM

yup that was it thanks. logged in under the root account. thought i could
just use the root password authorization under a non root account. guess not hehe.

zaicheke 01-04-2005 05:45 AM

You can always use sudo or change the permissions of the file.

carilmu 03-08-2006 04:34 AM

hi..
i'm a newbie.i also have the same problem as malkaven...but i still couldn't edit the vsftpd.conf file when i type

#whoami
root

it says that i am the root.How can i use the chmod statement? thanks.

timmeke 03-08-2006 06:48 AM

@carilmu, first off, it's unpolite to take over someone else's thread. Consult the forum rules for that one.
Nevertheless, if you are root, then you have access to all files on the filesystem, regardless of the permissions.

For clues on how to use chmod, consult it's man page.
You can alter permissions either numerically or via characters.
ie
chmod 644 some_file (makes file read-write for owner, read-only for anyone else)
chmod u+rw some_file (gives the owner read-write permission)
Be careful using chmod however. File permissions are a very important part of your system's security.
Post back if you have any trouble.
You need to be either root or the file's owner to be able to change the file permissions for a certain file.

@Malkaven: you can impersonate the root user while you're logged in as some non-root user.
The commands "su" (switch user) and "sudo" (impersonate root for execution of certain commands) can help you with that. After an "su", type "exit" to revert back to previous user. Of course, you'll need the passwords for all users you want to impersonate.

carilmu 03-08-2006 10:48 AM

hi all.
sorry for taking over the thread. i apologize and thanks to timmeke for pointing it.i didn't meant to be like that.

btw, i used the
#vi /etc/vsftpd.conf

and proceed to edit the file after i make a backup.

really guys, sorry for my mistake...

timmeke 03-09-2006 02:01 AM

No problem, carilmu. Just remember to create your own thread if you need help.
In short:
-make a copy of /etc/vsftpd.conf as backup
-then edit the settings
-finally, restart vsftpd so it reads the configuration changes.
Something like
Code:

service vsftpd restart
should accomplish that.


All times are GMT -5. The time now is 09:19 AM.