How to Restrict user login after certain time in Solaris??


 
Thread Tools Search this Thread
Operating Systems Solaris How to Restrict user login after certain time in Solaris??
# 1  
Old 08-04-2010
How to Restrict user login after certain time in Solaris??

My OS is Solaris 10, I would like to know if there is any way to restrict user login to the system (either remote or console login) after certain time, say 20:00 on Mon to Fri and whole day on SAT and SUN???

Sorry that I am a new user on Unix System.

Any comment is fully appreciated!!!

Alex
# 2  
Old 08-04-2010
There is no built in mechanism for that in Solaris. Linux comes with a PAM module named pam_time, but I could not find a Solaris port.

Last edited by hergp; 08-05-2010 at 02:30 AM..
# 3  
Old 08-05-2010
so are there any plug-in module I can find ???
# 4  
Old 08-05-2010
Sorry, I am not aware of any precompiled module for solaris.
# 5  
Old 08-05-2010
I guess you may use crontabs for this.
# 6  
Old 08-05-2010
Quote:
Originally Posted by rajamadhavan
I guess you may use crontabs for this.
Thanks for your reply, but would you please give me more details ???
# 7  
Old 08-05-2010
A wild thinking!!!

How about playing around /etc/passwd file for example say 20:00 on Mon to Fri and whole day on SAT and SUN you can replace or comment the line in /etc/passwd. Schedule a script which can perform the task and once through every morning removed the replace the file with actual one or remove the cooment line from /etc/passwd!!!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 user account login expired

Hi everyone Please i need urgent help... I have installed solaris 11 using live media.. then i installed sunray.. every thing is fine.. but after system reboot i am unable to login on server on GUI it gives account expired error or some time authentication failed... but i can log in through... (11 Replies)
Discussion started by: amk
11 Replies

2. Solaris

HOW to set unlimited login attempts for user in Solaris?

Hi Admins, HOW to set unlimited login attempts for user in Solaris ? And do I need to insatll any packages before doing this? Thanks. (1 Reply)
Discussion started by: manalisharmabe
1 Replies

3. AIX

User login time

I want to set the "logintimes" variable for a user on a server who need access mornings and night how to I set the "logintimes" I want the user to log in from 08:00 to 12:00 and 17:00 to 21:00 is this possible? (1 Reply)
Discussion started by: daveisme
1 Replies

4. Solaris

How to restrict user to a specific directory in solaris 10

Hi all, I want to create a new user and grant him ONLY transfer files access to a specific directory where he can only upload and read the files. He should be restricted to this activity only. Regards (6 Replies)
Discussion started by: gilldn
6 Replies

5. SCO

Restrict user from breaking out of login script

I have a login script similar to where the user's shell in /etc/passwd is set to csh: echo "In .login" setenv SHELL /bin/csh /bin/sh -c trap "" 1 2 3 5 6 7 8 15 /path/to/application logout --------------------- however, even with the trap command the user is still able to... (1 Reply)
Discussion started by: kuliksco
1 Replies

6. UNIX for Dummies Questions & Answers

How do I get the last login time of a particular user?

How do I get the last login time of a particular user?:confused: (1 Reply)
Discussion started by: g.ashok
1 Replies

7. Solaris

How to enforce login as specific user in Solaris

Hi, I need to implement something that will enforce login to a Solaris server as a particular, specifed user. After this login stage, users will be able to "su -" to whichever user they wish, by which time their activity will be captured by some sort of script (yet to be written). What I need... (7 Replies)
Discussion started by: jamiegeo1
7 Replies

8. UNIX for Dummies Questions & Answers

get all user's login time

hi all, i need yor help!!!:D i am a newbie in programming i want to get user list and their login time... i have search and learn about pswd and utmp, but i only can get usr list without their login time... do you have an idea to solve my problem? thanx (5 Replies)
Discussion started by: alif
5 Replies

9. UNIX for Advanced & Expert Users

Automatic time out of user login

I have asked by our security team to implement an automatic time out for user logins after a specified time interval. I have never heard of this feature in Unix before. Does anyone know of a way to accomplish this for HP-UX 11i? (2 Replies)
Discussion started by: keelba
2 Replies
Login or Register to Ask a Question