LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10: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, 04:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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 11:53 AM.
 
Old 06-22-2003, 10: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, 11:06 AM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

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


Reply



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 02:11 PM
Disable access to Time change yunus.raza Linux - Security 1 05-16-2005 12:10 PM
Disable net access for one user Dawgmatix Linux - Networking 5 02-05-2005 10:25 AM
I lose ftp access when I disable shell access for user captainObvious Linux - General 3 11-13-2004 05:49 PM
Disable SSH access but show a message fr0st Linux - General 6 12-16-2003 07:50 AM

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

All times are GMT -5. The time now is 06:13 PM.

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
Open Source Consulting | Domain Registration