DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th July 2022
TCH TCH is offline
Shell Scout
 
Join Date: Mar 2017
Posts: 85
Default Is it possible for ftpd to allow root login?

Is it possible for ftpd to allow root login? If yes, how?
Reply With Quote
  #2   (View Single Post)  
Old 13th July 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

See the -m option in the ftpd(8) manual.
Reply With Quote
  #3   (View Single Post)  
Old 13th July 2022
TCH TCH is offline
Shell Scout
 
Join Date: Mar 2017
Posts: 85
Default

So, i have to set minuid to 0, ok thanks. But can i do that if running ftpd as a service with rcctl? I mean, which config file contains this setting? The manual does not cover this.
Or i must edit the /etc/rc.d/ftpd file and add -m 0 to the command line variable? Won't that conflict with updates?
Reply With Quote
  #4   (View Single Post)  
Old 13th July 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

There are two ways to run the ftpd(8) daemon:
  1. From legacy Unix: as a service started and stopped by inetd(8) interactively as ftp clients connect and disconnect. Provisioning would be performed in inetd.conf(5). There is an example file in /etc/examples/inetd.conf.
  2. More commonly: as an always-running service started by the rc.d(8) system at boot. Options and flags are set with rcctl(8). Here's an example of one possible provision and startup -- the daemon will also start at boot thereafter:
    Code:
    # rcctl enable ftpd
    # rcctl set ftpd flags -D -m 0
    # rcctl start ftpd
Reply With Quote
  #5   (View Single Post)  
Old 14th July 2022
TCH TCH is offline
Shell Scout
 
Join Date: Mar 2017
Posts: 85
Default

Thanks
Code:
rcctl set ftpd flags -D -m 0
did the trick in ifstated.conf.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ftpd anonymous not login marcelino63 OpenBSD General 5 7th November 2015 11:03 PM
OpenBSD ftpd FTP/TLS FrankieKat OpenBSD Security 3 21st November 2013 12:09 AM
ftpd problem narcotico FreeBSD General 3 11th July 2008 03:08 AM
pure-ftpd hirohitosan FreeBSD Ports and Packages 3 10th June 2008 06:31 PM


All times are GMT. The time now is 09:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick