Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Persistent users across reboot ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Persistent users across reboot ? (Read 2984 times)
chunky
Newbie
Posts: 13
Karma: 0
Persistent users across reboot ?
«
on:
July 17, 2018, 11:31:15 pm »
Hi there
I've compiled vsftpd server from ports because I need a ftp server running on my lan only. It was not straightforward, especially the part while configuring virtual users, but I succeded, somehow. Now, I rebooted my opnsense machine and the virtual account I just created (with command adduser -v) was gone. I don't really understand the mecanisms for opnsense users management, the gui doesn't show the system's groups and users. So, is there a preferred way to keep manually created users across reboots?
Is there plans to add an ftp server as a service, I guess it would be very welcome for many people. I used to run tomato firmware on a consumer router and I miss many features of it since I've been running opnsense. That's too bad because, otherwise, opnsense have a nice base.
Another question : whats will happen to my compiled / customized programs in /usr/local/ when I'll make a firmware upgrade ? is it deleted ? If so, I guess I would have no other choice to stop upgrading the os.
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: Persistent users across reboot ?
«
Reply #1 on:
July 19, 2018, 12:01:37 am »
Hi there,
Packages register users if they want, but ftp/vsftpd does not register a user/group. So it seems like you talk about users who can log into FTP. You can create the group and user from the GUI. The system restores the defaults if you mess with the command line in order to recover from bad situations with a "magical" reboot or in case of file corruption (the latter happened quite a bit early on).
Packages that you install from ports are not removed, but could prevent updates or break after updates -- that situations is easily remedied by installing (building really) again. This is sometimes necessary because when the OS version changes libraries are removed and the software no longer works as expected. The same goes for binaries that use kernel interfaces.
Long story short. Nothing bad happens most of the time, you're in charge of updating and rebuilding after major upgrades. That's all.
Cheers,
Franco
Logged
chunky
Newbie
Posts: 13
Karma: 0
Re: Persistent users across reboot ?
«
Reply #2 on:
July 19, 2018, 07:08:18 pm »
thanks you franco.
I moved to pure-ftpd instead as it was easier to add / modify virtual ftp users afterwards since virtual users are managed outside of regular unix accounts. the ftp server is launched at each boot via /etc/rc.conf settings. Work well so far.
I also would like to know the proper way to add a specific user to another group which aren't visible in the gui, and thus, across reboots.
For now, I'm forced to run the command :
Code:
[Select]
pw usermod tvheadend -G webcamd
each time I boot, because if not, tvheadend server could not access the tuner device. Could it be done within the gui ?
Logged
chunky
Newbie
Posts: 13
Karma: 0
Re: Persistent users across reboot ?
«
Reply #3 on:
July 22, 2018, 09:48:22 pm »
Anyone
how add a user to another group and keep it across reboot ?? it's so simple to do with regulars distro but opnsense doesn't store this simple setting
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Persistent users across reboot ?