Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-23-2003, 11:23 PM   #1
LQ Newbie
Registered: Feb 2003
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
Question Time Restrictions - porttime - logoutd

Runing Slackware 8.1

How do I add time restrictions to user logins?

I've read man porttime and logoutd but I'm not exactly sure how to implement it.

I created an /etc/porttime file. I put therein a line that I found that was used as an expample in the manpages for porttime.

It goes like this:


I created the user "time" and he can still log in outside the given time. I tried runing logoutd from the commandline as well as putting it in my /etc/rc.d/rc.S file. (Is that even the right file?) Does logoutd take an parameters?

In some instances on the internet, I have found that instead of using /etc/porttime, time restrictions are implemented using a /etc/security/time.conf file. Is this true in Slack8.1?

And, in nmy login.defs file, porttime is enabled.

Please help!
Old 02-25-2003, 01:23 AM   #2
LQ Newbie
Registered: Feb 2003
Location: New Zealand
Distribution: Slackware 8.1
Posts: 5

Rep: Reputation: 0
I'm running slack8.1, and it's working fine for me (I had a problem with a typo first try though - SASU instead of SaSu )

Also, running logoutd made no difference. The user couldn't log in even when it wasn't running.

Just to be sure, start again, with a new user etc, and setting the allowed time to SaSu0000-2400
and if that fails... is your system time correct?

P.S. Don't use su time to login, it won't fail.

Last edited by allegro; 02-25-2003 at 01:30 AM.


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
Shell Restrictions Equin Linux - Security 1 10-21-2004 11:46 AM
porttime in Shadow utils dosent work javalino Linux - Security 1 05-15-2004 04:14 PM
Directory Restrictions aeruzcar Linux - Security 6 10-28-2003 09:09 PM
Restrictions X3781 Linux - General 1 01-07-2003 12:55 PM
command restrictions keevitaja Linux - Newbie 4 09-12-2002 05:40 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:23 AM.

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