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-27-2008 01:20 AM
I am not able to send mail form unix to other mail accounts. chinnigd UNIX for Dummies Questions & Answers 1 04-06-2006 09:31 AM
User Accounts sroberts82 UNIX for Dummies Questions & Answers 3 10-13-2005 09:09 AM
Deleting some mails from Unix mail accounts JimJim Shell Programming and Scripting 0 09-12-2005 03:57 AM
Creating mail accounts online.? vbs Security 1 07-01-2002 12:42 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-01-2002
vbs
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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
  #2 (permalink)  
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

  #3 (permalink)  
Old 07-02-2002
vbs
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
thanks

Thank you very much.
  #4 (permalink)  
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0