Sponsored Content
Full Discussion: I am confused and desperate
Top Forums UNIX for Dummies Questions & Answers I am confused and desperate Post 6001 by Perderabo on Tuesday 28th of August 2001 09:39:14 AM
Old 08-28-2001
I would try something like this:

Give the user a shell of /usr/local/bin/ksh8-10 by editing /etc/passwd.

Put /usr/local/bin/ksh8-10 in /etc/shells so the guy can still use ftp.

ln -s /usr/bin/false /usr/local/bin/ksh8-10
to insure that he can't login.

At 8 a cron job would "ln -s /usr/bin/ksh /usr/local/bin/ksh8-10" to allow logins for a while. But at 10 a cron job would set it back.

To be real complete, maybe a script at boot up time to set /usr/local/bin/ksh-8-10 based on current hour.
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Please Help.... Desperate need! Hard Question!

I know pipelined processors have issues with interupts.... but why? And does the architecture of the CPU affect the kind of software that can run on it? If someone could help me out that would be awsome. My boss came to me with this question and I can't find anything on the web helping me out.... (1 Reply)
Discussion started by: Sparticus007
1 Replies

2. Shell Programming and Scripting

perl odbc... need desperate help!

Hey guys: Can anyone show me , how I can update mulitple fields in a database (sample Informix) using Win32::ODBC ? I'm creating a script that accepts an array as the value and then inserts these values into all the table fields in a particular database... Thanks for anyone who can... (2 Replies)
Discussion started by: jfsuminist
2 Replies

3. UNIX for Dummies Questions & Answers

Please help me decipher this header - I'm desperate!

I've got a really weird situation here.... the same IP address keeps popping up in porn spam that I have rec'd in 2 different email accts. It looks to me like it's coming from UC Davis, and I suspect someone there, so I am hoping you all can verify the same thing before I call the person on this... (0 Replies)
Discussion started by: christinef
0 Replies

4. Shell Programming and Scripting

Desperate for help with menu coding

I am extremely desperate for help with this menu coding problem I'm having. Whenver I go to execute my script file, I keep getting an error message that says the following: option: Undefined variable. I implore someone to PUH-LEEZE point me in the right direction. I can't stress my... (21 Replies)
Discussion started by: sinjin
21 Replies

5. Shell Programming and Scripting

csh desperate help...

Hi guys, I am really newbie of csh and I am stuck with a script. Basically what I want to do is assign to a variable (array) the output of "ls". Then look at this array and if there is the word "my_file", delete it from the array and echo the new array. Moreover, I would like to have that... (8 Replies)
Discussion started by: Mandrake83
8 Replies

6. SCO

Desperate for SCO OpenServer 5.0.6Is

Is anyone able to help. Desperately trying to virtualise an ageing Pecase system on SCO 5.0.6 (1 Reply)
Discussion started by: ElGato
1 Replies

7. SCO

Desperate for SCO OpenServer 5.0.6 ISO

Is anyone able to help. Desperately trying to virtualise an ageing Pecase system on SCO 5.0.6 (2 Replies)
Discussion started by: ElGato
2 Replies

8. UNIX for Beginners Questions & Answers

UUCP HELP for a desperate new user

Hello, I have a unique situation where I must pass along critical & time-sensitive emails to a group of seven different people. Every person with whom I communicate EXCEPT ONE uses a standard IP based ".com" email address. The one exception is a gentleman who will NOT budge and create a... (1 Reply)
Discussion started by: Bell02
1 Replies
NETRC(5)						      BSD File Formats Manual							  NETRC(5)

NAME
netrc, .netrc -- user configuration for ftp DESCRIPTION
This file contains configuration and autologin information for the File Transfer Protocol client ftp(1). The .netrc file contains login and initialization information used by the auto-login process. It resides in the user's home directory. The following tokens are recognized; they may be separated by spaces, tabs, or new-lines: machine name Identify a remote machine name. The auto-login process searches the .netrc file for a machine token that matches the remote machine specified on the ftp command line or as an open command argument. Once a match is made, the subsequent .netrc tokens are processed, stopping when the end of file is reached or another machine or a default token is encountered. default This is the same as machine name except that default matches any name. There can be only one default token, and it must be after all machine tokens. This is normally used as: default login anonymous password user@site thereby giving the user automatic anonymous ftp login to machines not specified in .netrc. This can be overridden by using the -n flag to disable auto-login. login name Identify a user on the remote machine. If this token is present, the auto-login process will initiate a login using the specified name. password string Supply a password. If this token is present, the auto-login process will supply the specified string if the remote server requires a password as part of the login process. Note that if this token is present in the .netrc file for any user other than anonymous, ftp will abort the auto-login process if the .netrc is readable by anyone besides the user. account string Supply an additional account password. If this token is present, the auto-login process will supply the specified string if the remote server requires an additional account password, or the auto-login process will initiate an ACCT command if it does not. macdef name Define a macro. This token functions like the ftp macdef command functions. A macro is defined with the specified name; its con- tents begin with the next .netrc line and continue until a null line (consecutive new-line characters) is encountered. If a macro named init is defined, it is automatically executed as the last step in the auto-login process. SEE ALSO
ftp(1), ftpd(8) Linux NetKit (0.17) September 23, 1997 Linux NetKit (0.17)
All times are GMT -4. The time now is 05:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy