LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-07-2006, 09:29 PM   #1
badrat
LQ Newbie
 
Registered: Aug 2006
Posts: 8

Rep: Reputation: 0
Very Strange problem


Hello Friends,

I'm recently faced very strange problem on PAM service on RHEL 4. I had to to allow user1 user2 and user3 to login only between 9 AM to 17 PM everyday. To do this I did the following:

1) vi /etc/security/time.conf
login;*;user1 user2 user3;Al0900-1700

2) vi /etc/pam.d/login
account required pam_time.so

This setting prevented user1 user2 and user3 to login to the system other than 9AM to 17 PM. But the strange thing happened is All the users with the name matching "user{1,2,3}" for example user10, user15, user19, user100, user110, user20, user200, user30, user300 are also denied to login other than 9AM to 17Pm.

What is wrong here and how to solve this.


Why /etc/nologin also prevents the root user to login. I think this has to deny only non-root user. please help me to sort it out.

Thank you for your help.

badrat4u@gmx.de
 
Old 10-07-2006, 10:41 PM   #2
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
Quote:
Originally Posted by badrat
Why /etc/nologin also prevents the root user to login. I think this has to deny only non-root user. please help me to sort it out.
That refers to remote logins only. It will prevent all users from logging in locally but only allow root to login remotely (ie- via ssh)
 
Old 10-08-2006, 12:04 AM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Moved: This thread is more suitable in Linux - General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem with du and df Suinatsa Linux - General 1 05-26-2006 08:27 AM
Strange problem harken Linux - Networking 1 01-27-2005 03:32 PM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 05:16 PM
Strange problem Larke Linux - Newbie 5 04-22-2004 05:57 PM
wx-config problem strange problem plz help glacier1985 Linux - Software 4 07-26-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:58 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