General :: Using Script To Automatically Record Terminal Sessions When A User Logs In?

Mar 3, 2010

I'm trying to set up automatic recording of user sessions when they login without their knowledge. I tried sticking the script command into /etc/profile and but that didn't really work. I also tried /etc/bashrc but that had the same affect.I have also tried setting the shell in /etc/passwd to SHELL=/bin/bash /usr/bin/script -q /testing.txt.

View 8 Replies


ADVERTISEMENT

General :: Link Terminal Sessions - Show Logged In As The Same User?

Jun 7, 2011

I was doing some rather lengthy procedures using a terminal. Then I wrote script using Kate, and input it into that terminal, and then realized that I was logged in as a normal user in that terminal as opposed to a superuser, which is how I was logged in at the other terminal. I've never noticed this before because I've never done anything that takes this long.

Is there any way to link all terminal sessions in such a way that they all show me logged in as the same user? I don't even know if this is even important, but I don't want to risk losing any things that I had done.

View 2 Replies View Related

General :: Automatically Logs Into A User (not Root) In Graphical Mode And It Does Not Asking For Any Password

Dec 14, 2010

When I start my ubuntu linux system it automatically logs into a user (not root) in graphical mode and it does not asking for any password. when I try to go to the command prompt the password is required. How do I give password for my user. The provider installed the system and not me..

View 5 Replies View Related

Ubuntu :: Automatically Save Terminal Sessions?

Nov 23, 2010

i'd like to ask how could I save my Terminal Sessions to a text file or something like the option we could do at Putty or Kitty?

View 1 Replies View Related

General :: Xvnc Sessions Do Not Allow Program Or Terminal Launching?

Feb 12, 2010

I just added 8 additional vncserver sessions(Xvnc) (using a well-documented procedure my predecessor used) to my RH Enterprise 2.4.21-4 (OK it went by fast) server. This brings the number of session listed in my /etc/sysconfig/vncservers file to ~32. Applications and terminals now seem to choose if they will open or not in the Xvnc session and not all sessions start at boot. I can start them manually, and they will work, but then they stop working properly. You can open a session, view the active desktop, click on menus and associated drop-down items to try and open apps, but the apps/terminals just won't open. Is there a limit to the number Xvnc Sessions that can be managed? If so, what is it? This happens whether I try to connect from a Winddows box or another Linux box.

View 3 Replies View Related

General :: Bash Script - Obtain Current Workdirs Of All Konsole Terminal/sessions?

Jan 15, 2011

I am trying to write a bash script that would save the current state of my konsole terminals and sessions. I'm using KDE3.X and for some reason the "profile" save does not save the current working directories... Anyway, I would like to know if there is an elegant way to obtain the current workdir of each terminal and session ? I've managed to do something with a clever use of DCOP extended functions, but it requires me to start every konsole with the --script option enabled, and I don't want to do that.

View 9 Replies View Related

General :: Record Operations In Log File From Terminal?

Jul 27, 2011

I would like to document my activity on linux terminal during some operation.I want to have text file which will contain all commands typed and output from those commands in a file.I know how to set this option in Putty but I have some problems in linux terminal.

<pre>
bash | tee output.log
</pre>

When I perform above spell, it only records STDOUT to file.on't have there STDIN,STDERRHow to have in this output.log file STDIN,STDOUT,STDERR

View 4 Replies View Related

General :: SuSE Always Logs A User In TVM Session?

Mar 16, 2010

I recently installed Suse Linux enterprise Desktop 11 on my box. I created an user and logged in first time into a GNOME session without any problems. Last time I logged in I selected the session as TWM and that got me into the T windows manager just fine. Now when I log out and try to log back into a GNOME session, it will still log me into the TVM sessionI have tried restarting the boxHowever, when I remote log in to the machine it will let me get on the GNOME session just fine. I'm guessing this is probably a really simple fix, however I am a Linux newbie and doing a google search isn't yielding me what I'm looking for.

View 1 Replies View Related

Ubuntu :: 9.10 - How To Get Sessions Through Terminal

Feb 9, 2010

Where is sessions in 9.10? How do i get it, Is it called something different.

View 5 Replies View Related

Ubuntu :: Automatically Logs Me On Without Asking Me For My Password?

Jun 21, 2010

I don't know if this a bug or some setting that I have changed inadvertently, but when I start up my computer Ubuntu now logs me on automatically to the sole user account I have created but without asking me my password.I rarely fiddle about with settings and am not aware of touching anything to do with user accounts etc. Obviously I don't want this behaviour otherwise I wouldn't have put a password on the account. Everytime I log on I want to choose what language I want to run my system from the log on screen.

In administration > users and groups > it says my user account password is asked at login.Is there an option somewhere else to turn this behaviour on or off?how I could have accidentally turned this behaviour on?

View 2 Replies View Related

CentOS 5 :: Moving Logs Automatically?

Mar 8, 2010

I have a logserver.log located at /usr/local/logserver. It's NSLOGDEPTH=100. I'm not sure if this is the reason but my log file is only up to 100 only..samplelogserver001.loglogserver002.log......logserver100.logThe other logs were already removed. I do not have any scripts on logrotate for this specific logs. My question now is: How can I move some logs automatically so that it will not be removed totally from the system. I'm planning to move it locally on the server and compressed it at the same time. My second plan is to move it on another server. Do I need to create a script on this or can be done on logrotate? (note: i do not want to remve old logs)

View 1 Replies View Related

General :: Record Audio In Single User Mode Using Fedora - Connection Refused

Mar 25, 2011

I'm just working on fedora for the first time for my proj. So having many difficulties. My first doubt is that is it possible to record audio in single user mode using fedora? I need it for my proj work..I tried arecord and rec in single user mode.. I'm getting an error stating pulse audio connect error. Connection refused..

View 2 Replies View Related

Ubuntu :: How To View Previous Terminal Sessions

Nov 10, 2010

I often use the terminal to shut down my system whilst watching TV in bed, I use SUDO AT TIME and HALT.This works a treat most of the time, but a couple of time this week I have woken in the night and the PC/TV is still running? Maybe I mis typed somthing? Is there any way I can view previous terminal sessions to check ???

View 4 Replies View Related

OpenSUSE Install :: 11.2 Logs Out Automatically Without Notice?

Feb 16, 2010

Well, its been 2 days since I have had Suse 11.2 on this laptop. (Fujitsu-Siemens Amilo M7400 1.6 GHz Centrino, 60GB HDD)Everything seems to work in order, but at certain times, the computer will just log out on its own, without any reason. It gives no error when it does this, so there is no way for me to determine what the cause is. As far as the rest of the OS goes, everything seems perfectly fine, except for the automatic log out the computer does. It just annoys me when the computer logs out by itself sometimes because then I am lost on where I was before, since nothing gets saved when it does this. It makes things really challenging when you are typing something as I am now and then the computer just logs itself out on its own, leaving me with nothing because it does not save anything. And if so, what are the repair steps to this issue??

View 9 Replies View Related

OpenSUSE :: 11.3 GNOME Constantly Locks Up Or Automatically Logs Out?

Jul 20, 2010

I'm running 11.3 with GNOME on my Dell Inspiron 1525 with on board Intel video card. I had 11.2 64 bit running but did a fresh install of 11.3 with the 32 bit version. When the problems started occurring (locking up, logging out by itself, applications crashing that were fine in 11.2...), I tried reinstalling. When that didn't help I tried the 64 bit 11.3 but the problems keep happening. I can't get any work done. I've noticed that these occur while the computer is idle (either screensaver or later after the display has been turned off). I'll come back to my computer and notice that either the computer is locked up (screensaver frozen, audio on a one-second-loop...) and have to restart the computer or I come back to find the login screen waiting for me (and obviously have a new session when I log in).

View 9 Replies View Related

General :: How To Open Terminal Automatically At Run Level 5

Jun 25, 2010

I want that when ever my Red Hat Linux machine use run level 5 it automatically open terminal. Is there anyway to do it? Normally I see the desktop, Right click on anywhere and click for terminal then it can see terminal.

View 6 Replies View Related

General :: Automatically Open Terminal At Login Time?

Jun 7, 2011

I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout

View 13 Replies View Related

Programming :: PHP/MySQL FOSS For Managing User Sessions On The Web?

Apr 24, 2009

My co-worker and I are working on this robotics project where robots are controlled over the web. I don't want to go into all the details, but basically the users visit a page where they have access to a PHP-based interface that allows them to send commands to robots in our tech lab (via an intermediate server). Our web server is running Apache.

Anyway, now we need to implement session control, with user-names and passwords so that only certain people can have access to the interface at a certain time, with access to only certain robots, et cetera. We were hoping there was some kind of pre-fab FOSS solution for handling both the session control and maintaining the MySQL user/password database.

My co-worker knows a little PHP, and I know a little MySQL, but we are both noobs enough that we would prefer to do as little of this from scratch as is possible. We don't have a lot of time, and I know it is easy for inexperienced MySQL programmers to introduce security vulnerabilities.

View 1 Replies View Related

Security :: Non Privileged User Sessions Close Immediately After Login?

Apr 16, 2009

while hardening a red hat enterprise 5 installation I have done something that causes the sessions of all user accounts except root to close immediately after authentication. in the /var/log/secure log file it will show three log entries per attempt:

<date/time><hostname> login: pam_unix(login:session): session opened for user fred by LOGIN(uid=0)
<date/time><hostname> login: LOGIN ON tty1 BY fred
<date/time><hostname> login: pam_unix(login:session): session closed for user fred

Since I did a number of things and have not been able to identify what caused this.

View 2 Replies View Related

Programming :: Kill Pids For All Sessions For A Specific User Except Their Current One?

Oct 20, 2010

I have several users on handhelds and they like to let their sessions time out. Their zombie processes then cause record locks.I've come up with calls for killing the pids for any prior sessions started by a given user. This procedure would be executed in the .bash_profile.

View 3 Replies View Related

General :: How To Change User Groups Automatically

Jun 16, 2011

I've created a set of users using the newusers command. Unfortunatelly ive messed up and added all users to the 1000 group as primary group instead of giving the group argument as null what would add them to a new group. To make things clear:

The entries should be

user:password:::User Name:/home/user:/bin/bash

but I did

user:password::1000:User Name:/home/user:/bin/bash

I need to create the missing groups. A simple fix could be do a for loop creating a group with the name of each user in my file and then adding the users to it. Are there any dangers of doing it? What impact could this change have? Are there any safer ways?

A combination of the following commands:

Quote:

Add users to a group with the gpasswd command:

# gpasswd -a [user] [group]

To delete existing groups:

# groupdel [group]

To remove users from a group:

# gpasswd -d [user] [group]

If the user is currently logged in, he/she must log out and in again for the change to have effect.

Quote:

for i in (names)
do groupadd $i
gpasswd -a $i $i

Assuming I've created all users in group 1000 I could remove them from it with

Quote:

# gpasswd -d [user] [group]

View 2 Replies View Related

Programming :: Bash - Automatically Build A Set Of Packages And Redirect Output Into Logs - Failed Make Should Return A Non-zero Value

Jun 27, 2011

I have a set of bash scripts that I'm running that automatically build a set of packages for me and redirect their output into logs. Basically, I have a bunch of lines that are something like this: ${CONFIGURE_DIR}/configure &> ${LOG_DIR}/log or cd ${CONFIGURE_DIR} && make &> ${LOG_DIR}/log, etc.

This is supposed to make the entire process silent. However, sometimes with some packages some output leaks to my console (either stdout or stderr). I'm thinking that maybe the configure scripts/make are executing commands within new shell instances that don't inherit my redirect, or something to that effect.

Another reason for thinking this is that in another part of my script I detect errors when running make by testing with "if [ $? -ne 0 ]", and if the redirect leaks to my console and also the leaked output indicates that the build failed ("make: Error" and so on), then my $? test fails (i.e., it thinks that $? == 0, whereas a failed make should return a non-zero value). It's as if my original script can't "see" the results from child commands executed from later scripts.

View 1 Replies View Related

General :: Shell Script To Automatically Login Through Ssh And Create User?

Oct 20, 2010

I was trying to create a shell script which will automatically login to the server 192.168.1.7 and checks if a user exists there or not, if it doesn't exist then it should create the user.I have very little idea about shell scriptThis is what I tried:Quote:

#!/bin/bash
pass="sacharje"
ssh 192.168.1.7

Now, how to pass that password automatically to the ssh when it asks for the password? (I can't use public key authentication here)

View 10 Replies View Related

Server :: View History Logs Of Terminal Usage?

Dec 23, 2010

I am using Fedora 13. Is there a log file in system I can view to see the list of command lines I had entered in terminal so far?

Commands like

Code:
ls
cd /usr/local
emacs test.txt

which are logged in the log file.

View 3 Replies View Related

Software :: View Logs Live To Display In Terminal?

Mar 24, 2011

Is there a software I can use to display on a terminal that would display traffic or log information to a display terminal. I have CentOS on all my boxes. I would like to have a terminal up and have it show things like requests to the DNS servers, apache or maybe anything else. Especially errors. I know if I had something just displaying live from the web server it would go by so fast you couldn't see it so I would have to slow it down or something.

View 1 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related

Fedora :: Moved /home To A Seperate Partition, Now Terminal Logs In At?

Oct 4, 2009

I recently moved /home to a seperate partition. Everything works fine except that when I open a terminal it starts me off in / instead of /home/user

View 4 Replies View Related

Ubuntu :: Black Screen When User Logs Out?

Aug 21, 2010

I've searched the web and these forums and I don't seem be the only one with this problem yet I couldn't find a cure for it; 2 users are logged in, one of them logs out and the screen goes blank. Nothing works except shutting off the computer manually.Does anyone know if a cure has been found for this problem by now?

View 2 Replies View Related

Ubuntu :: Start Kdm - Gdm - X After Unprivlaged User Logs In

Sep 10, 2010

I'm running ubuntu server on a home server which runs samba, ftp, and bittorrent 24/7. there is no need to be using the graphics capabilities of the system by having a desktop environment active 24/7 so to save power when i'm not using the desktop, i stop the kdm/gdm and x. This can be done easily by sudo start/stop kdm/gdm/x etc., but there are users in my home who are unprivileged on this computer but who would still like to use it from time to time and rather than having me login every time and start x for them, I would like to find an automatic solution to the problem.

I tried setuid scripts (which i found out fast didn't work), I tried compiling a small c program (again, setuid then start x) which i couldn't get to work, I also tried looking for a signal to send upstart when a specific user logs in so the appropriate environment could start but couldn't find one. I've only just started getting into upstart scripting and despite what I know.

View 4 Replies View Related

Ubuntu Servers :: Run Scripts When Ssh User Logs In?

Nov 6, 2010

I'm a bit of a unix noobie trying to manage a small ubuntu server. I want to run a bash script automatically after an ssh user logs in. For example, after they log in and the default welcome message is displayed, I want to run a script that displays some server statistics since the last session. I made an alias to the script, and I could run it manually after I log in, but it's a bit of a hassle. Is there any way I could do this?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved