CentOS 5 :: Launch Bash Script On User Logon?
Nov 12, 2010What is the best way to lauch bash script on user logon and logoff?
View 1 RepliesWhat is the best way to lauch bash script on user logon and logoff?
View 1 RepliesI would love to auto-start tomboy at startup. How can I do this ? [Moderator edit: fixed Subject so nobody would expect an automatic Lunch. Is that the same as a free one? ]
View 2 Replies View RelatedIs there anyway to prevent a user from being able to logon at a machine (Terminal and XWindows) but allow that user to logon remotely using SSH? This user is for remote capture of logs only - on a private network (no internet access).
View 1 Replies View RelatedIn fedora 14, the user order on GNOME login screen is completely different from that in fedora 13. Is there any way to order the users by date of creation ASC, not by name ASC?
Also, it is completely random. This time when I started my computer, my account was listed first. When I started this thread, it was listed last. What's happening?
I think someone hacked my server and I'm wondering if it's possible to view the possible the past user logons?
View 6 Replies View RelatedI'm working on a script notifying me after a client changes a log level on a given server. I get the following error after running the script:
LogonUser [
odeunivmo3domaincommon]: unable to get property
LogonPassword [
odeunivmo3domaincommon]: unable to get property
I get the email notification fine, the environment is set to common. I think the problem is somewhere in these lines of code.
SCP_USER=`${cer_exe}/lreg -getp \
ode\\${NODE}\domain\\${loc_env} LogonUser`
SCP_PSWD=`${cer_exe}/lreg -getp \
ode\\${NODE}\domain\\${loc_env} LogonPassword`
how can i restrict a single particular user from logging into the server not more than 5 times?
The conditions may be:
1) wrong password
2) can login only 5 times on one day etc.
I'm running Suse 11.1. MySQL is installed. I downloaded and installed the software for MySQLAdmin and MySQLBrowser, this was one software package so both got installed at the same time. My question is this; When I log into MySQL to use the Admin Tools it doesn't like my root password. So I log in as 'localhost' with the id of 'root' and no password and I get right into the main Admin menu. Why doesn't it accept the root password and how can I change the root login to need to have a password. Will just changing the password in MySQL Admin do the trick?
View 5 Replies View RelatedIf you need to to exclude one or mode user from your gdm login window you must edit "/etc/gdm/gdm.schemas" and add the user you want exclude from the <key> "greeter/Exclude" (near the other user in <default></default>)
When Fedora could have a gdm config again?
Sometimes my user list is empty on start-up. When it happens the buttons beneath the empty list (shutdown, suspend and restart), are not responding. As a work-around I login to the first terminal as root to restart the machine and usually my normal user account appears back on the list. This morning the reboot work-around didn't work any more..
View 4 Replies View Relatedhaving a hard time mapping a drive from a windows xp PC to a Linux Share. I have edited the SMB.conf file to include the share I want to connect to. when I try try map a drive to the Linux share using NET USE M: \192.168.15.5pairing I get the following error:"system error 1326 has occurred.Logon filaure: unknown user name or bad password."I use a username and password that is valid on the Linux server and has access to the Share.
View 2 Replies View Relatedlogon to my RHEL as a user. I am able to logon in as root locally.
View 3 Replies View RelatedI've config vsftpd chroot mode follow:
Code:
Code:
Our system is based on RH4 and is using pam_tally and faillog to record failed attempts and to lock users out after 5 attempts. We have a requirement to provide a normal (non-root) user logging onto our system, with information regarding the number of failed logon attempts made on their account before the current successful logon (similar to the functionality provided by HP Protect Tools on Windows). My first idea was to add 'faillog -u $USER' to the bashrc, however by the time the bashrc is run - the user has been successfully authenticated and the faillog has been reset back to zero.
View 5 Replies View Relatedhow to launch a non-login bash session that doesn't inherit its parents environmental variables, and doesn't source /etc/bashrc?
View 2 Replies View RelatedI just downloaded a game Cube 2: Sauerbraten and I am trying to make a shortcut in Application->Games.
Basically to launch a game I have to double-click on a file, which is a script that invokes the rest of the game. After double clicking a dialog shows up that asks me whether I want to edit the file, run in terminal, or just run. I have no problem running it this way, but my shortcut in Applications->Games does not work. I have tried setting shortcut option to "Application" and "Application in Terminal" and nothing happens.
As of now the shortcut command points directly to that start script. I have also tried to do "sh /path/to/game" and still no success. How do I make that shortcut work?
I'm trying to launch CoverGloobus (a fantastic little album art and current song display) and Rhythmbox simultaneously through a BASH script. Problem is that when I attempt to run the script the first time, CoverGloobus doesn't launch, but Rhythmbox does. Here's my script as it is right now:
Code:
#! /bin/bash
#Opens Rhythmbox and CoverGloobus
rhythmbox && covergloobus
done
I've double-checked the commands in gnome-terminal, and they're the right ones for launching the applications. Here's where it gets odd, though. The second time I run the script, CoverGloobus and Rhythmbox launch simultaneously. I've reproduced this scenario multiple times.
I want to write a bash script that will launch a command when ever I plug my phone in. how would I monitor the port in a script.
View 2 Replies View RelatedI've just built a fresh Centos 5.4 install on a 533 MHz P3. This machine is going to be used as a thick client on a LAN. I'm trying to implement automatic logons to the KDE desktop but the automatic logon implementation isn't working as expected. I'm hoping that someone can tell me what I've done wrong. Here's what I've done so far:
1. Created a non-root user account named "bob". "bob" has generic low-level privileges on the machine.
2. I've tried to enable automatic logons using the following GUI menu selections:
Control Center > System Administration > Login Manager > Administrator Mode > Convenience Tab
How is it possible to change the default text that is displayed on the default BASH logon (attached)?
View 1 Replies View RelatedI've written a script (that doesn't work) that looks something like this:
#!/bin/sh
screen -dmS "somename" somecommand
for i in {0..5}; do
screen -dmS "name$i" anothercommand $i
done
For some reason, if I copy and paste this into a terminal, it creates 7 detached screen sessions as I expect. If I run it from within a script, however, I get only the first session, "somename," when I run screen -ls.
Edit: If the same can be accomplished another way (e.g. with multiple screen windows instead of sessions), I would be open those solutions as well.
I have got a RHEL 5.6 server configured to authenticate via a Windows 2008 domain controller via LDAPS.Everything is working fine, except from the following: When I create a new user in Active directory and check the option "user must change password at next logon", the new user cannot logon and gets an "access denied" message. In /var/log/secure, I find the following:
Mar 1 14:43:21 cpssvn10 sshd[5363]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.3.12 user=testuser2
Mar 1 14:43:21 cpssvn10 sshd[5363]: pam_ldap: error trying to bind as user "CN=CPSS Testuser 2,OU=IBM,DC=cpss,DC=smarterplatform,DC=com" (Invalid credentials)
Mar 1 14:43:23 cpssvn10 sshd[5363]: Failed password for testuser2 from 192.168.3.12 port 4583 ssh2
As soon as I uncheck the "user must change ..." option, the user can log on without problems. Also password change via the passwd command works.
As a long time FreeBSD user, I consider give Debian a try upon the arrival of my new laptop. However, seems I couldn't launch desktop environment by simply typing startx on console as on FreeBSD. I can start desktop through a display manager like lightdm on Stretch, which is quite easy and straightforward, but I still prefer the "startx way".
I setup Debian Stretch on Virtualbox (4.3.43) using official debian-installer, login as a normal user, and install xfce4 via Code: Select allsudo apt-get install xfce4. The installation of xfce4 was very fast and it also introduced xorg related packages here. Then I edit my $HOME/.xinitrc as follows:
Code: Select allexec startxfce4
I typed startx to expect Xfce desktop but got the errors complained instead: [URL]....
while the xorg.0.log had the following contents: [URL]....
So, I failed to start xfce4 by startx as a normal user and had to install and start lightdm to go into desktop, but when I login as root, it worked and launched Xfce4 by startx without any problem. I couldn't figure it out now.
I have this message in the syslog from squeeze:
Code:
May 2 21:18:19 squeeze x-session-manager[1732]: WARNING: Could not launch application 'user-dirs-update-gtk.desktop': Unable to start application: Failed to execute child process "xdg-user-dirs-gtk-update" (No such file or directory)
I'm running into problems adding the required schema for automount and ldap on Centos 5.6 (also tried Centos 5.3)In the last few days I was able to setup LDAP server and get client authentication working. I want to be able to automatically mount users home folders on logon and store the configuration in ldap.I've done the following so far
1) added include in /etc/openldap/slapd.conf to /etc/openldap/schema/redhat/autofs.schema
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/autofs.schema
So I recently got a VPS from hostgator and am now looking to get xwindows or xorg installed so that I can launch firefox from my VPS, the issue is that I don't want to install a complete desktop environment. Is there a way to accomplish this? I have enabled X11 forwarding in ssh and in the putty session, but continue to receive errors about displays.
View 1 Replies View RelatedIn the right upper corner of your screen,you can see if you have a network connection or not.Most of the time I do not have one according to Networkmanager (?).So I have to enable my wired connection manually.I already tried a lot to change my settings so I would have a network connection at boot,but it doesn't seem to work....Firefox is in Offline modus when I logon..
View 2 Replies View RelatedI have installed CentOS on my system.I am unable to locate 'Disk Druid'.Kindly suggest the way to launch it.
View 2 Replies View RelatedNon-root user cannot launch "shortcuts" (sorry I grew up on windows, don't know the right term) from the file manager or plasma desktop manager.They have full permissions to the shortcuts, even ones they create do not work.If I log in with root permissions they work fine
View 2 Replies View RelatedI am facing problem on executing commands like df -h,ls-l,grep etc in /bin.
it is showing below errors:--
----------------------------------------------------------------------------------
login as: root
root@220.226.102.217's password:
Last login: Sat Jun 4 11:14:20 2011 from 220.227.54.149
-bash: /bin/egrep: cannot execute binary file
[code]....