create a file outside the users home directory when creating a newuser

This is a discussion on create a file outside the users home directory when creating a newuser within the Redhat forums, part of the Linux category; if I add a new user how would I go about automatically create a file for the user inside /var/mail with appropriate ownerships and rights?...

Go Back   Unix Linux Forum > Unix > Linux > Redhat

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-26-2008, 03:25 PM
Default create a file outside the users home directory when creating a newuser

if I add a new user how would I go about automatically create a file
for the user inside /var/mail with appropriate ownerships and rights?
Reply With Quote
  #2  
Old 09-03-2008, 11:30 PM
Default Re: create a file outside the users home directory when creating anewuser

On Tue, 26 Aug 2008 12:25:23 -0700, canajien@gmail.com wrote:

> if I add a new user how would I go about automatically create a file for
> the user inside /var/mail with appropriate ownerships and rights?


Why do you feel this is necessary? The user's mailbox file will be
automatically created by the mail system if it doesn't exist when they
receive their first email. Unless you are trying to accomplish something
unusual with the permissions this is a non-issue.

- NL
Reply With Quote
  #3  
Old 09-03-2008, 11:30 PM
Default Re: create a file outside the users home directory when creating anewuser

On Tue, 26 Aug 2008 12:25:23 -0700, canajien@gmail.com wrote:

> if I add a new user how would I go about automatically create a file for
> the user inside /var/mail with appropriate ownerships and rights?


Why do you feel this is necessary? The user's mailbox file will be
automatically created by the mail system if it doesn't exist when they
receive their first email. Unless you are trying to accomplish something
unusual with the permissions this is a non-issue.

- NL
Reply With Quote
  #4  
Old 09-08-2008, 11:22 AM
Default Re: create a file outside the users home directory when creating anew user

On Sep 3, 11:30*pm, Netlurker wrote:
> On Tue, 26 Aug 2008 12:25:23 -0700, canaj...@gmail.com wrote:
> > if I add a new user how would I go about automatically create a file for
> > the user inside /var/mail with appropriate ownerships and rights?

>
> Why do you feel this is necessary? *The user's mailbox file will be
> automatically created by the mail system if it doesn't exist when they
> receive their first email. *Unless you are trying to accomplish something
> unusual with the permissions this is a non-issue.
>
> - NL


the users mail file isn't being created automatically
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 11:48 AM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger