Sponsored Content
Top Forums Programming How to lock own console when idle? Post 302255155 by sundar63 on Thursday 6th of November 2008 02:36:21 AM
Old 11-06-2008
The command lock can do the job, but it can be killed!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to lock keyboard without using lock command

how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device? thanks (7 Replies)
Discussion started by: dianayun
7 Replies

2. Solaris

CPU idle

hi when should we consider that CPU is loaded? When it is 100% idle or 0%idle?? tx (4 Replies)
Discussion started by: melanie_pfefer
4 Replies

3. UNIX for Advanced & Expert Users

console /dev/console get image

We are using software (Pegasys) which runs on SunOS 5.8 and reads images from a Philips nuclear camera. The software is designed to run from the console. I need to be able to capture the images it produces on the display. The caveat is that I cannot use the X Windows display because the X Server... (3 Replies)
Discussion started by: sreyes27
3 Replies

4. UNIX for Advanced & Expert Users

idle time again

I need to find the idle time on a machine in the manner: How long time ago somebody did the last action with mouse or keyboard? Unfortunately "w" doesn't do this. It produced the following output on a machine a user was actually working on with an application: 15# w 15:55:28 up 15 days, ... (1 Reply)
Discussion started by: elbrand
1 Replies

5. UNIX for Dummies Questions & Answers

Windows to Linux remote console using VNC brings up blank console screen with only mouse pointer

:confused:Hi This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons. I get a whole bunch of errors when starting the service too: Tue Feb 23 14:29:45 2010 ... (1 Reply)
Discussion started by: wbdevilliers
1 Replies

6. Red Hat

Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length

Hello all, If anyone has time, I have a few questions: How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too. 1. How to lock the account after a few (like 3) invalid password attempts? 2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies

7. UNIX for Dummies Questions & Answers

lock the console after 5 minutes of inactivity.

How would i force The server console to be locked automatically after 5 minutes ? I want it to happen for X as well as terminal session of the machine. My Linux distribution details. LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID:... (11 Replies)
Discussion started by: pinga123
11 Replies

8. UNIX for Dummies Questions & Answers

IP Console Vs Serial console.

Hi Gurus, Can some one explain me the difference between a IP console and a serial console. (1 Reply)
Discussion started by: rama krishna
1 Replies

9. UNIX for Advanced & Expert Users

Testing privileges -lock lockfile /var/lock/subsys/..- Permission denied

Hi all, I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...). I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message. Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies

10. HP-UX

Idle sessions.

What kind of problems can be faced if any session which connects to unix server is open for longer time? How to find out from how much time that session is idle? :) (1 Reply)
Discussion started by: anandgodse
1 Replies
LPRM(1) 						      General Commands Manual							   LPRM(1)

NAME
lprm - remove jobs from the line printer spooling queue SYNOPSIS
lprm [ -Pprinter ] [ - ] [ job # ... ] [ user ... ] DESCRIPTION
Lprm will remove a job, or jobs, from a printer's spool queue. Since the spooling directory is protected from users, using lprm is nor- mally the only method by which a user may remove a job. Lprm without any arguments will delete the currently active job if it is owned by the user who invoked lprm. If the - flag is specified, lprm will remove all jobs which a user owns. If the super-user employs this flag, the spool queue will be emp- tied entirely. The owner is determined by the user's login name and host name on the machine where the lpr command was invoked. Specifying a user's name, or list of user names, will cause lprm to attempt to remove any jobs queued belonging to that user (or users). This form of invoking lprm is useful only to the super-user. A user may dequeue an individual job by specifying its job number. This number may be obtained from the lpq(1) program, e.g. % lpq -l 1st: ken [job #013ucbarpa] (standard input) 100 bytes % lprm 13 Lprm will announce the names of any files it removes and is silent if there are no jobs in the queue which match the request list. Lprm will kill off an active daemon, if necessary, before removing any spooling files. If a daemon is killed, a new one is automatically restarted upon completion of file removals. The -P option may be usd to specify the queue associated with a specific printer (otherwise the default printer, or the value of the PRINTER variable in the environment is used). FILES
/etc/printcap printer characteristics file /usr/spool/* spooling directories /usr/spool/*/lock lock file used to obtain the pid of the current daemon and the job number of the currently active job SEE ALSO
lpr(1), lpq(1), lpd(8) DIAGNOSTICS
``Permission denied" if the user tries to remove files other than his own. BUGS
Since there are race conditions possible in the update of the lock file, the currently active job may be incorrectly identified. 4.2 Berkeley Distribution October 22, 1996 LPRM(1)
All times are GMT -4. The time now is 02:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy