Bruce Dubbs wrote these words on 03/07/05 11:33 CST: > Randy McMurchy wrote: >> I need to create an 'lp' user for the CUPS instructions. I'm not >> sure what to use as the home directory. I always use /var/spool/cups. >> >> However, /var/spool/cups is a privileged directory. But I don't see >> that being an issue as the 'lp' user in a non-login user with the >> login shell set to /bin/false. > > Just for reference, RedHat uses /var/spool/lpd:/bin/nologin. > Since it's not a login account, I suspect it really doesn't make any > difference as long as its empty.
I suppose this is okay, but I don't like creating a directory the FHS says is supposed to exist if the LP subsystem uses it as a spooling directory, which CUPS does not. Furthermore, BLFS is not consistent at all when it comes to creating users. Sendmail creates a user without specifying -d on useradd resulting in defaulting to /home/smmsp as the home dir. The dir doesn't even exist using current Sendmail instructions. Postfix, Exim and Courier create a user that uses /dev/null as the home dir with Postfix and NFS-Utils creating a nobody user which uses /home (the nobody user doesn't seem right in using /home). I'm not experienced using /dev/null as a home dir for a non-login user, but it seems to be the way the majority of packages do it. Not to move away from Bruce's suggestion, but can anyone see why /dev/null shouldn't be used? -- Randy rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3] [GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686] 12:11:01 up 4 days, 22:15, 2 users, load average: 0.00, 0.03, 0.00 -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page