Forum Moderators: bakedjake

Message Too Old, No Replies

how to close terminal access?

user need just email

         

Trusty

9:13 pm on May 13, 2003 (gmt 0)



Hello guys!

Iam running redhat 9.0, so how can I close terminal access for users who use just email because terminal they don't needed.
I know this is newbe question, but I was unable to find doc for this.

marcs

10:47 pm on May 13, 2003 (gmt 0)

10+ Year Member



Change their entry in /etc/passwd and change their shell to emailonly. Example :

username:x:4497:266::/home/username:/bin/emailonly

Then create a blank /etc/emailonly

Example :

ls /bin/emailonly -l
---x--x--x 1 root root 0 Apr 27 2001 /bin/emailonly

That should do it.

rayvd

8:14 pm on May 15, 2003 (gmt 0)

10+ Year Member



I'm not sure how Linux will respond to this, but some Unix's will complain if you list a shell that's not in /etc/shells. So you may need to add /bin/emailonly to your /etc/shells file if you get any errors.

chaitan

12:58 am on May 17, 2003 (gmt 0)

10+ Year Member




I'm not sure how Linux will respond to this, but some Unix's will complain if you list a shell that's not in /etc/shells. So you may need to add /bin/emailonly to your /etc/shells file if you get any errors.

No, you don't need to do it in Linux. And, you better NOT doing it. As unix won't accept user ftp access if their shell is not in the /etc/shells.

daisho

7:22 pm on May 20, 2003 (gmt 0)

10+ Year Member



/bin/emailonly is not a standard Linux program. I use a shell of /dev/null or /bin/false or /sbin/nologin.

Also I really hope your not using telnet. If so kill it now and switch to SSH.

You can then also control SSH access via sshd_conf

daisho.

Trusty

9:26 pm on May 20, 2003 (gmt 0)



Thanks for all replys

I was using this: /bin/false

Iam using SecureCrt SSH1 I thing.

daisho

10:32 pm on May 20, 2003 (gmt 0)

10+ Year Member



SSH1 is better than telnet but is not as secure as SSH2. If you can use SSH2 you would be well advised to do so.

daisho.