![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
thanks
Thank you very much.
|
|
#4
|
||||
|
||||
|
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 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|