Bug 128433 - [patch] Add option to allow a full login when doing 'su' in rc.subr(8)
Summary: [patch] Add option to allow a full login when doing 'su' in rc.subr(8)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2008-10-28 10:10 UTC by Volker Theile
Modified: 2018-01-03 05:13 UTC (History)
0 users

See Also:

file.diff (1.42 KB, patch)
2008-10-28 10:10 UTC, Volker Theile
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Theile 2008-10-28 10:10:01 UTC
To allow running an application using a specific user I have to modify
the /etc/rc.subr script because the current implementation does not do
a full login when using 'su'. But sometimes it is necessary to do a full
login to allow the application to read/write config data in the user home

To enable a full login when doing a 'su' the application rc-script can
be modified the following way:


Please see also

Don't know if this behaviour can be solved another way, but if not, I
think it is a useful enhancement. Anyway, I'm wondering that nobody else
had this problem till now.


How-To-Repeat: Try to run transmission daemon as user 'transmission'. It fails to start
the daemon because it was not possible to read/write config data in

Using the patch a full login will be done when doing 'su' in rc.subr and
the daemon will read/write config data in
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:43 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped