LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2003, 11:27 PM   #1
Manuel-H
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Rep: Reputation: 15
Disable Shell Access


Hi all,

My server host a few domain for basic web and email services.
I do not wish to allow my users to have shell access.
So I put /bin/false as their shell. It works.

However, they cannot use the vacation feature in sendmail if they do not have a shell. The error message will say no permission of something. Do not remember the actual error msg.

My question:
How can I disable the shell access and at the same time able to use the vacation msg.

my user's has a "|vacation username" in their .forward
without shell, the vacation program cannot run.

Any idea how do I go around it?
 
Old 06-20-2003, 05:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
if you're only basically wanting to disallow remote logins or certain local ones, have a look at the /etc/security/access.conf file which can, for example, dissallow all physical logins (i.e. mail logins will be ok) to certain users, based on tty, ip address and various other factors

Last edited by acid_kewpie; 06-20-2003 at 12:53 PM.
 
Old 06-22-2003, 11:45 AM   #3
Manuel-H
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Original Poster
Rep: Reputation: 15
Thank you.

Someone suggested to use .profile with a statement "logout".

It works and vacation program works too.

Simple and effective approach!

Anyway, thanks a lot.!!
 
Old 06-22-2003, 12:06 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,876

Rep: Reputation: 88
Quote:
use .profile with a statement "logout"
Very interesting. I will need to remember that one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disable internet access to server jonfa Linux - Networking 3 06-24-2005 03:11 PM
Disable access to Time change yunus.raza Linux - Security 1 05-16-2005 01:10 PM
Disable net access for one user Dawgmatix Linux - Networking 5 02-05-2005 11:25 AM
I lose ftp access when I disable shell access for user captainObvious Linux - General 3 11-13-2004 06:49 PM
Disable SSH access but show a message fr0st Linux - General 6 12-16-2003 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration