Ubuntu :: Not Allow Multiple Logins To The Shell?

May 20, 2010

Is there a way to prevent a user from being able to login more than once. Not a one-time login, but a single login. What I'm trying to do here is in moving our email system, an email user would login to this account, enter some password information, sync up their email, and have the passwords files removed, then log off. Next user can log in to the same account.

The reason for the single login is to protect the user's passwords.

View 1 Replies


ADVERTISEMENT

Fedora :: Multiple SSH Logins With Only One Password?

Dec 30, 2009

I want to login into my main machine from my laptop,sing ssh with several linux consoles, all running mc.Is there any way to only login once with one password, and get several consoles running at the same time?It's a pain to have to ssh and give the same password for each console I want running on the main machine.I've looked at the screen package, but can't seem to get that working.What I'd really like is 3 different terminal sessions, all connected with one password. Each terminal with 3 tabs, all running mc under the same password. So that's 9 different instances of mc running remotely

View 3 Replies View Related

Ubuntu :: Disable Multiple Logins For A Single User?

Apr 5, 2011

I'm trying to disable multiple logins for a single user on Ubuntu 10.10 but I haven't been able to find a way to do this on this version

View 4 Replies View Related

General :: Detect Remote Logins Within Shell Script?

Apr 19, 2011

I've written a shell script that among other things, restarts network services. As such, I'd like to keep those who are remoting in via putty, etc. from executing the script. Is there a way to detect this and restrict running the script (by adding additional coding in the script) that disallows running it from unless you are logged in directly to the machine? It's written in bash.

View 1 Replies View Related

Red Hat / Fedora :: Multiple Logins At The Boot Screen?

Feb 18, 2010

Is there any method to allow multiple users to login to the main server - something like is allowed in windows ?

I am aware of how to telnet/ssh into the machine, but there are some engineering programs which need to be run on the head node (for some display issue problems on the ssh windows), which locks up the head node for another user who might need to log into the machine for their own work.

where I can set it up to permit multiple users to work at the head node without logging off, and instead allow "switch user" or something of the kind ?

View 1 Replies View Related

Ubuntu :: Comparing Multiple Files In Shell Script?

Jun 13, 2010

I've got an interesting challenge for the shell scripting wizards here. I've got a mySQL dump of three files for my amarok database with the intention of copying some files to my media server (cover art) so that I can keep the server the server and not rely on my local machine.

Step 1: Identify any cover art files on my local machine.

I did this with:

Code:
mysql -u amarok -p amarok -e "SELECT * FROM images WHERE path like '%.kde%'" > cover_art.txt
Output looks like this:

[Code]....

What I have here now is the ENTIRE album list in my collection -- and something to compare the IDs in Step 1 against. I'm going to stop here and will update the thread as I get past this stumbling block. "ID" in cover_art.txt = "image" in albums.txt... straightforward enough, right?

So the question is this: how do I create a simple shell script that will loop through the IDs in cover_art.txt (i.e. characters 0 -> 4 -- it will always be a 4 digit ID) and then search for that ID in the Albums.txt file.

View 3 Replies View Related

Programming :: Shell Script For Multiple OS?

Jun 28, 2009

i need a script that will give as much system info such as CPU usage, partition info, mem usage, etc.. from multiple OS's, FreeBSD, AIX, HP-UX. I only know SCO unix and dont know the commands on the other OS's.

View 2 Replies View Related

General :: Count Multiple Objects In Shell Script?

Jul 21, 2010

Trying to count the number of oracle instances on HPUX 11.23 - using ksh. I have multiple instances running and I would like to have a count for how many processes for eachinstance.Example, run the 'ps -efu oracle' command and for each instance increment a counter. So I am looking forINT1=# INT2=# INT3=# ... INTn=#I keep thinking a 'do-while' or some type of 'while' loop but I am missing something, somewhere

View 2 Replies View Related

General :: Passing Multiple Arguments In Shell Script?

Dec 11, 2010

The script receives multiple files as parameters and it is supposed to count the number of lines in each of them and write that number in another file.

This is my script:

Code:

while [ -n "$1" ]
do
lines=`cat $1 | wc -l`
echo "The number of lines in file $1 is $lines." >> lines.txt
shift
done

Is there any other way to do the same thing, without using shift?

View 7 Replies View Related

General :: Debugger For Shell Script - Get Rid Of Multiple Exit Command ?

Jun 14, 2010

My two doubts:

(i) In office i open many terminal windows when i start my day and in each terminal i keep on login as different users many times in a day to do some task, by the end of the day when i need to exit from all terminals in a safeway instead of directly closing it i need to execute exit command or CTRL+D many times to close a single terminal safely. Can anybody tell me a way to exit from each terminal in single go, is there any command to acheive this ? I wish if we had a command like exitall like in vi we have :qa command to close multiple files opened in single window. I hope friends you have got what i am asking for ?

(ii) I want a software for debugging shellscripts searched a lot but dint got it.

View 7 Replies View Related

General :: Shell Scripting: Getting Multiple Input Files For An Application?

Sep 21, 2010

I am running an application called QuantiSNP [URL]. The binary file is "quantisnp2", called upon in the "run_quantisnp2.sh" supplied by the authors. I am only able to run the application for single file processing (e.g. 1 input file for 1 sample; I can't run the batch file processing because I don't have the necessary BeadStudio report files, which has different formatting for the input files).

The difficulty is that I have 300 samples (300 unique sample IDs) and 3 input files for each sample for a total of 900 runs of this application. I am wondering how would I be able to automate this process as a shell script instead of basically manually changing the sample ID and respective input files every time a run completes? I bolded the single file processing shell script command line options below that need to be changed for each sample/input single file processing run. The command line option "--sampleid" is for the name given to the processed output files corresponding to the sample of interest and there are 3 input files for each sample.

/home2/jason/QuantiSNP/quantisnp/linux64/run_quantisnp2.sh /home2/jason/QuantiSNP/MCR/v79/ --config /home2/jason/QuantiSNP/quantisnp/config/params.dat --levels /home2/jason/QuantiSNP/quantisnp/config/levels-affy.dat --outdir /home2/jason/QuantiSNP/quantisnp_out/ --sampleid sample1 --gender female --input-files /home2/jason/files/sample1_input.txt

Note that each sample has 3 input files, for a total of 3 runs of "quantisnp2" for each sample. e.g.

SAMPLEID INFILE
sample1 /home2/jason/files/sample1_input.txt
sample1 /home2/jason/files/sample1_input2.txt
sample1 /home2/jason/files/sample1_input3.txt

[code]....

View 7 Replies View Related

Server :: Shell Script To Create Multiple LVM's Or Raw Devices For Syabse

Mar 22, 2011

I have Disk /dev/cciss/c0d1: 599.9 GB, unallocated on CentOS release 5.4 .

I need to create about 30-40 LVM's worth 500GB as raw devices for sybase . is there a way to script it or anyone already has it ?

The problem is that each time we need to do fdisk /dev/cciss/c0d1 and enter the partition no to create a new one .. how to overcome that problem and automate it in a script ?

View 3 Replies View Related

General :: Shell Script File - Pass Multiple Parameters To Interpreter?

Feb 2, 2011

I have a Python script that I run which needs to execute under a special environment, so I would run the program like so from my working directory (~/project/src):

python manage.py shell

This opens up an interactive shell for me to start typing my own commands.I have another set of administrative activities that I would like to house in another directory (~/project/admin). The manage.py is really finicky about running from the working directory. So, to make this whole thing work, I made a script which starts off like so:

#!/usr/bin/python ../src/manage.py shell

There are a couple problems with this. The first is that it doesn't work:

/usr/bin/python: can't open file '"/../src/manage.py" shell': [Errno 2] No such file or directory

How do you specify multiple parameters to the interpreter?How do I change the working directory?

View 2 Replies View Related

Programming :: Write A Shell Script For Submitting Multiple Jobs Sequentially

May 27, 2010

I want to write a shell script for submitting multiple jobs sequentially. For example,

#!/bin/bash
qsub job1.sh

# when job1.sh is done, run the next one

qsub job2.sh

how to make the shell script know that job1.sh is done and now I can run job2.sh?

View 4 Replies View Related

General :: Runs Multiple Shell Script Inside A Main Script Using Crontab?

Oct 22, 2009

I wrote a simple shell script called main.sh and inside it calling another shell script called rename.sh.Both are placed in a same directory.[/home/srimal/test]

$cat main.sh
Code:
#!/bin/sh

[code]...

View 4 Replies View Related

Ubuntu :: 10.04 Firefox Not Keeping Logins

May 20, 2010

i have 10.04 installed through wubi on my school hard drive and i notice that after i turn it off, then later put it in one of the many computers, firefox seems to forget i had things to keep me logged in, such as this forum.

now it could be that i use it on different computers(all have the same hardware), but its just odd if you ask me this doesn't get in the way of use but is happening.

Code:
Linux ubuntu 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
cookies are enabled

View 4 Replies View Related

Ubuntu Servers :: TTY / SSH Logins Timing Out?

Aug 28, 2010

Have had issues with my 10.4 Server regularly. I believe it's something that I've done wrong in some of the hosts settings or the like. When I try and login to the server, especially on startup, I get messages saying the login attempt timed out after 60 seconds and when I login via ssh it boots me from the connection after about 60 seconds of trying to login. It's after entering the password so it's something to do with authentication most likely. I think the issue is with my /etc/hosts file as I said before. Hostname is blackbox and it's only meant to be a local network server.

/etc/hosts file:

Code:

127.0.0.1 localhost.localdomain localhost
192.168.1.5 blackbox.localdomain blackbox
# The following lines are desirable for IPv6 capable hosts

[code]....

View 9 Replies View Related

Ubuntu :: Save Session For Future Logins?

Jan 16, 2010

I have a few questions related to the 'Save Session for Future Login' option you can check (and is checked by default) when you go to shutdown/restart/etc.

1) What exactly does checking this option and shutdown/restarting do?

2) Is there any way to have it unchecked by default?

3) Is there any way to completely remove the option?

View 1 Replies View Related

Ubuntu Servers :: Allow Logins When There Is A Shutdown In Progress?

Jun 24, 2010

I've got a server that I just use for backing up and archiving files. Since I don't need access to it often I just keep it powered off. I set up wakeonlan and have port 9 and port 22 forwarded to it.

I travel fairly often, and how its set up now, I can send the magic packet to the connection its on and wakeonlan kicks in and powers up the server. Then I can sftp into and access the files I need and then shut it down again in ssh.

It all works good until there's a power outage. For some reason after a power outage wakeonlan doesn't work.

Here's a workaround for this: I can set the system to automatically power up after a power outage. Problem is, the computer could be on for a week or more, wasting power before I log in and turn it off. So the workaround for that is to put a "deadman's switch" where a script will run at startup that will run "shutdown -q -P +5" which will power off the system after five minutes.

After I run wakeonlan I can ssh in and run "shutdown -c" to cancel that shutdown and still use it. If there's a power outage, once power is restored, the system will start up and then automatically shutdown again and be ready for the next wakeonlan signal I send.

Everything is flawless, except one problem. When "shutdown -q -P +5" executes, it disables all new logins. If I'm fast enough I can ssh in before the shutdown program disables logins, but not always. What I want is a way I can run shutdown without disabling logins.

View 5 Replies View Related

Ubuntu :: Eliminate Constant Password Logins?

Feb 19, 2011

Very often I have to leave my computer for a few minutes while in the process of downloading files, or just to get a cup of coffee, and when I come back, I have to re-enter my password to continue. This level of security is unnecessary since I am the only one here, and there is no danger of anyone ever messing with my PC. How can I eliminate these annoying login requests? One reason I am trying to get away form Windows is to have the computer do what I want, and not what other people think I want. I have been experimenting with various Linux OSs and several versions of Ubuntu, and this is an annoyance in every one I try.

View 6 Replies View Related

General :: Top Causes Of Slow Ssh Logins

Jul 22, 2010

there are 2 spots where I see a range from instantaneous to multi-second delays.Between issuing the ssh command and getting a login prompt and between entering the passphrase and having the shell load.Now, specifically I'm looking at ssh details only here. Obviously network latency, speed of the hardware and OSes involved, complex login scripts, etc can cause delays. For context I ssh to a vast multitude of linux distributions and some Solaris hosts using mostly Ubuntu, CentOS, and MacOS X as my client systems. Almost all of the time, the ssh server configuration is unchanged from the OS's default settings.

What ssh server configurations should I be interested in? Are there OS/kernel parameters that can be tuned? Login shell tricks? Etc?

View 6 Replies View Related

Server :: Securing Ssh Logins ?

Sep 15, 2010

We have a public server and it can be accessed from any where through ssh.

My question is my server should not allow anyone directly to login as root user. First he should login as normal user then he should switch to root user.

I also have another questions is there any specific linux command is there to end other users ssh session without rebooting the server.

View 2 Replies View Related

OpenSUSE :: 'who' Command Output And X Logins?

Feb 9, 2010

Does anybody know if with OpenSUSE 11.2 something changed in the way the users are logged in to X? I am running an application which uses notify-send command to send pop ups and it is not working properly, but it works in OpenSUSE 11.1, 11.0, 10.x, The same goes for SLED and SLES, all versions.This is what I have found so far.Before the 'who' output was

Code:
$ foo@bar:~/Desktop> who
foo :0 2010-01-26 14:40

[code]....

View 9 Replies View Related

General :: Find The Ftp Logins In System?

Aug 26, 2010

we are using "last" command to find the last logins in our system.. how to find the ftp logins in our system?

View 1 Replies View Related

Security :: Detect All User Logins?

May 25, 2011

I would like to detect every login on my server. Not only ssh logins (virtual terminals) but also physical logins.There is a way to use nagios or a script to watch log files.But I would like to know is there a way to catch that information one step before.I thought about watching /dev/pts for changes but that is not different than log watching and everything does not appear in /dev/pts like a ssh tunnel (ssh -N user@server). These are only visible in logs because ssh tunnels do not open terminals.But I would like to be able to catch these on login.

View 8 Replies View Related

Security :: Lock Out Logins At The Console?

May 12, 2009

Is there a way to lock out logins at the console? I ask this because I can not login at the console but can remotely login to the system via ssh. I'm guessing I blindly implemented a security option and didn't know what I was doing when I did it.

View 2 Replies View Related

Security :: Monitoring Ssh - How To Get IP From Failed Logins

Nov 30, 2010

How do I monitor who is ssh'ing into a box (SLES) as well as failed attempts? How can I log their IP addresses, even if they're not in DNS?/var/log/messages I see their hostname but no IP address

View 13 Replies View Related

Fedora Installation :: Make Several Logins When Installing?

Dec 14, 2009

how to make several logins when installing Fedora?? Should I do it while installing the operating system or after that (like in Windows)?

View 2 Replies View Related

Networking :: Automating The Terminal Type With NIS Logins?

Jan 25, 2011

I am running NIS in an environment that has HP-UX 11.11 64-bit running on a PA-RISC rp3400 server, with Fedora Core 2 32-bit running on intel workstations. All users use the tcsh shell by default in their profiles. If more information is needed please let me know.

Users who log into the domain via a terminal window on the workstations are prompted for the terminal type which is normally dtterm. I want to automate the process so users are not prompted to enter in the above information. My plan is to modify the global-cshrc file on the master NIS server. I had several questions concerning this:

1. Is it better to modify global-cshrc, or should this be done at the individual user directory?

2. What is the correct syntax to use in either case?

3. Will the changes made go into effect upon the next login, or do I need to push out the changes via the make command?

View 2 Replies View Related

General :: Authenticate Users Logins By A Database?

Apr 8, 2010

is it possible to authenticate users logins by a database (postgres, mysql)?for instance: -user types username, pasword, at login screen -OS then connects to server with database and checks if the user is valid. if so, is it feasible to add a time lock function for each user? in the sql, postgres table ? for instance user sandra can only log onto the computer for 1hr at 5pm

View 7 Replies View Related







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