Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126457 - user at: home directory /var/spool/cron/atjobs does not exist
Summary: user at: home directory /var/spool/cron/atjobs does not exist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-16 13:46 UTC by cilly
Modified: 2007-01-09 15:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cilly 2006-03-16 13:46:16 UTC
In /etc/passwd the home for user at is /var/spool/cron/atjobs, but I think it must be /var/spool/at/atjobs.

Use pwck.

Some other users do not have their correct homepaths set, too.
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2006-03-16 13:50:44 UTC
Please only restrict sensitive bugs, this does not sound like a security issue.

Reassigning to bug wranglers
Comment 2 cilly 2006-03-16 15:46:49 UTC
If in passwd a falsy homepath is set, i.e. to a dir a user can put files, it could be exploited to gain login access.

See pwck, there are many falsy homedirs set. It is not related to at only.

>>
security@gentoo.org
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2007-01-09 12:12:49 UTC
Thank you for report, cilly. Although at works even with wrong home directory, this change does no harm thus I modified ebuild to set home directory to /var/spool/at/atjobs. But because of "at" user is already in your system thus you have to modify your passwd file by yourself, fex with vipw.

And, please, explain how does wrong home directories affect security? I've never heard about anything similar, but I'm not a member of security team, thus I could miss something. :)
Comment 4 cilly 2007-01-09 13:31:31 UTC
Well, it is a design bug and a result of being lazy. In this case, there wasn't a security hole opened, but such "desgin"-bugs could cause security holes. So see it as keeping it all clean.

Comment 5 Peter Volkov (RETIRED) gentoo-dev 2007-01-09 15:29:42 UTC
Ok. Nothing to do then. Closing.

If you have objections and you think that all other users should have right homedirs set reopen then, but, please, explain how this could compromise system or what is broken by such setting. Personally I do not understand why user need home directory set if user is a system user and should never login and programs which are run with this user id do not use home directory. Fex in this example at does not use home directory at all. At least at first glance I did not found any mention of home directory in sources.