LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-01-2004, 10:38 AM   #1
h4x0r
LQ Newbie
 
Registered: Sep 2004
Location: AZ
Distribution: Mandrake / FreeBSD
Posts: 9

Rep: Reputation: 0
Anybody know how to do something for each new user?


I just need to run a script (which I can set up), but I need it to run automatically for every new user that is created. Basically, I need to make their maildir (and subfolders) whenever they are created. I thought about adding an entry in 'mandrake_firstime' in the /etc/rc.d/init.d dir, but I wasn't even sure if that would do it. I can just make a bunch of folders in the /etc/skel dir, but I don't see that working. Any help would be appreciated.

Last edited by h4x0r; 10-01-2004 at 12:05 PM.
 
Old 10-01-2004, 08:50 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
I don't think creating a maildir in /etc/skel would present any problems.

You could add a call to the script to the end of adduser, provided your method of creating users calls this script.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Load kde profile from /mnt/removable/user instead of /home/user preacher.ca Linux - General 3 12-02-2005 03:00 PM
Samba -- XP user can log in to shares but smbclient user always gets password errors ejoe Linux - Software 3 04-18-2005 10:55 AM
grant user access to /fat-c & copying users' preferences to another user n0x Linux - Newbie 1 07-04-2004 12:04 AM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
Pleasehelp with proftpd.conf - trying to config user to write files as other user. philg Linux - Software 1 06-21-2003 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration