The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to forward mail in /var/mail/username to external mail unitipon SUN Solaris 2 05-26-2008 09:20 PM
I am not able to send mail form unix to other mail accounts. chinnigd UNIX for Dummies Questions & Answers 1 04-06-2006 05:31 AM
User Accounts sroberts82 UNIX for Dummies Questions & Answers 3 10-13-2005 05:09 AM
Deleting some mails from Unix mail accounts JimJim Shell Programming and Scripting 0 09-11-2005 11:57 PM
Creating mail accounts online.? vbs Security 1 07-01-2002 08:42 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-01-2002
vbs
Guest
 

Posts: n/a
Mail accounts

Hi there
I am a newbie. want to learn followings:

1. How can i create an mail only account.?
2. Where is the file containing mail accounts?What is the path?
3. Can i create mail accounts from PHP?

Thanx
Forum Sponsor
  #2  
Old 07-02-2002
J.P's Avatar
J.P J.P is offline
Registered User
 

Join Date: Nov 2001
Location: Sweden
Posts: 67
Hi vbs

1. You create them as you would do with a 'normal' account, with one exception.

# useradd -s /bin/false McLachlan

The -s option specifies what shelll McLachlan should have. But we only want McLachlan to read his mail, not have shell access so we specify it to something that wont grant any useful access. In this case /bin/false.

2. You can find user account information in /etc/passwd

3. Not sure, it's been a very long time since I've used PHP. Check out www.php.net

__________________
[ Please put signature here ]
  #3  
Old 07-02-2002
vbs
Guest
 

Posts: n/a
thanks

Thank you very much.
  #4  
Old 07-02-2002
J.P's Avatar
J.P J.P is offline
Registered User
 

Join Date: Nov 2001
Location: Sweden
Posts: 67
no problem

By the way, you can specify any program as your 'shell'.
For example if you want to let your mail user change his/her password you could do this:

# useradd -s /usr/bin/passwd MikeWallace

Or edit any existing mail-user in /etc/passwd, and change their shell to /usr/bin/passwd:

dummy:x:1003:100::/dev/null:/usr/bin/passwd


(your passwd program may be located elsewhere... Try 'which passwd'). Now all Mike Wallace or dummy need to do is use telnet or ssh (use SSH!) to connect to your computer, specify login/pass and then change his password.

Good luck
__________________
[ Please put signature here ]
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0