Welcome to WebmasterWorld Guest from 18.208.159.25

Forum Moderators: bakedjake

Message Too Old, No Replies

how to close terminal access?

user need just email

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

Junior Member

joined:Sept 1, 2002
posts:57
votes: 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.

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

Preferred Member

10+ Year Member

joined:Jan 11, 2003
posts:442
votes: 0


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.

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

New User

10+ Year Member

joined:May 6, 2003
posts:26
votes: 0


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.
12:58 am on May 17, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:June 9, 2002
posts:41
votes: 0



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.

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

Preferred Member

10+ Year Member

joined:Jan 31, 2003
posts:457
votes: 0


/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.

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

Junior Member

joined:Sept 1, 2002
posts:57
votes: 0


Thanks for all replys

I was using this: /bin/false

Iam using SecureCrt SSH1 I thing.

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

Preferred Member

10+ Year Member

joined:Jan 31, 2003
posts:457
votes: 0


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.