OpenSUSE :: Cron (Cannot Make / Remove Entry For PAM Session)

Jun 28, 2011

I run a virtual server with a standard minimal openSUSE 11.4 installation (Strato image) and all recent updates installed.
Code:
$ uname -a
Linux servername 2.6.18-028stab089.1 #1 SMP Thu Apr 14 13:46:04 MSD 2011 i686 athlon i386 GNU/Linux

A few days into running the server I found that although /usr/sbin/cron was running it didn't execute the cron scripts. Instead, I find this:

Code:
$ tail -n 3 /var/log/messages
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: pam_warn(crond:session): function=[pam_sm_open_session] service=[crond] terminal=[cron] user=[root] ruser=[<unknown>] rhost=[<unknown>]
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) PAM ERROR (Cannot make/remove an entry for the specified session)
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) FAILED to open PAM security session (Cannot make/remove an entry for the specified session) repeated every 20 minutes.

I have this:
Code:
$ cat /etc/pam.d/crond
# The PAM configuration file for the cron daemon
# No PAM authentication called, auth modules not needed
auth sufficient pam_rootok.so
account sufficient pam_listfile.so item=user sense=allow file=/etc/cron.allow onerr=succeed quiet
auth include common-auth
account include common-account
password include common-password

As per the standard installation and /etc/cron.allow doesn't exist (I tested if it made a difference if it existed with the single line root in it, but there was no effect). I need cron to execute because I want zypper to auto-update my server. On my home openSUSE 11.4 installation the problem doesn't exist. Is it perhaps related to the settings in the yast security center?

View 9 Replies


ADVERTISEMENT

OpenSUSE :: Remove The Entry In The Extension Cookies File?

Dec 20, 2010

I had an extension i started making and had loaded in Chromium. Well i forgot to unload it and deleted the files for it. Well now Chromium crashes on startup saying it can't find the manifest file for it. How can i remove the entry for that in the extension cookies file?

View 9 Replies View Related

OpenSUSE Install :: Grub Entry Modification - Cannot Remove From Menu List

Jun 20, 2010

I've recently installed suse x64 kde in dual boot mode with windows. I have 2 primary partitions with ntfs with 1 for windows7 boot and other for data/storage. There is no boot provision for data partition. SUSE install is on extended partition. I am unable to run fdisk -l and boot info script for some reason, kde is freaking me out (used to use gnome for last 4 years). The GRUB shows data as a boot and it added an entry in its menu. I will like to remove that entry from menu list.

View 9 Replies View Related

General :: Configure Cron Entry To Run Every Other Friday?

Oct 14, 2010

I have a requirement that a job run at a particular time every other Friday. I was wondering if I can configure cron to do this - perhaps using the /step feature? For example, can I do the following?

0 21 * * 5/2 /my/command

If this works, how does it decide when to begin skipping? In other words, where is the first Friday? Is it the first Friday of the Year? of the Month? I would just try it, but it would be an awful long time to wait to see whether or not it is working.

View 1 Replies View Related

Slackware :: Setup A Cron Job Using Crontab Entry

May 31, 2010

I am trying to setup a cron job using crontab entry like this 6,16,26,36,46,56 * * * * /usr/bin/fetchmail -k>/dev/null 2>&1 But nothing is happening This is the first time I have attempted using cron as I have settup mutt for my email which is now working great but I would like to have the mail collected every 10 mins The file is saved as mailcron in my /home folder. When i run crontab -l its listed ok but no mail is appearing in mutt.

View 10 Replies View Related

Ubuntu :: Cron Entry - Doesn't Seem To Be Running - Don't See Any File Gets Written To The Log Directory

Oct 4, 2010

I have the following cron entry but it doesn't seem to be running:

Code:

The script does exist. And so does the directory /home/usr/log and writable. /var/log/syslog only has a bunch of these:

Code:

I don't see any file gets written to the log directory. That suggests to me that cron didn't run the job, as confirmed by /var/log/syslog.

View 9 Replies View Related

Debian :: Add New Window Manager Entry To GDM's Session Menu?

Jul 7, 2010

I compiled QLWM window manager but it's not in GDM's session menu. How do i add it there?

View 1 Replies View Related

OpenSUSE :: How To Make Computer Start KDE Session By Asking Username And Password?

May 20, 2011

I am using OpenSUSE 11.4 on my office desktop computer. I would like to prevent users tinkering my computer, since there are personal and important files. How can I ask a username and password? I have one of course, but it is asked only if I log out and then log in. In the first boot, everyone can reach the KDE desktop.I am pretty sure it is an easy task.

View 3 Replies View Related

Ubuntu Servers :: How To Remove Entry From Grub

Dec 20, 2010

I need to remove an entry from my grub boot loader does anyone have a simple way to do this?

View 6 Replies View Related

Ubuntu :: Grub Remove Entry 'Other Operating Systems'

Aug 17, 2010

Is it possible to remove the entry 'Other operating systems' from the Grub menu display? I mean that it can be commented in menu.lst,but will it affect other OS(Win XP in my case) in any way?

View 2 Replies View Related

Ubuntu Installation :: Remove Windows Entry From Grub2?

Aug 17, 2010

Ive installed a fresh copy of ubuntu onto my laptop, dual boot with 7. Everything runs smoothly except the grub. So in grub i have an entry of vista loader. I have removed the ubuntu recovery mode and the memtest entry so now i have 3 entries

Ubuntu
vista loader
7 loader

How i can remove the vista loader? PS i have never had installed vista onto my system i bought it brandy new with 7 pre-installed.

View 8 Replies View Related

Server :: Not Booting - Remove The Entry From Fstab For /home It's Read Only

Jun 15, 2011

when i starting the server..it is coming to maintenence mode and saying repair file system...because /home1 was not found in /etc/fstab.. when i tried to remove the entry from fstab for /home..it is read only!!

View 5 Replies View Related

Red Hat / Fedora :: Make Entry In MBR Of Grub

Jan 18, 2011

I installed centos 5 in my PC. When it come to boot loader section I choose another partition (boot) not master boot record. After installing successfully when I restart my PC it is not showing grub it is going stright away to windows. I have also installed window xp. How to add grub entry in mbr.

View 3 Replies View Related

General :: Cron To Remove All Files Within Directory Except One File?

Jun 28, 2010

I would like to create a cronjob that will delete all files within a directory 1 hours after it is created to the folderI found this cron find /path/to/file/* -ctime +1 -exec rm {} ; but it's deleted all files.I want to make an exception, all file should be deleted except one file (letsay file a.zip)

View 16 Replies View Related

Fedora Servers :: Make An Entry In /etc/exports To Export A Directory?

Mar 13, 2009

Is there an easy to make an entry in /etc/exports to export a directory for every entry in /etc/hosts?

View 2 Replies View Related

Ubuntu :: Remove Login At Start / What To Remove To Make It Go Away?

Jun 21, 2010

I am the only user on my laptop so there are somethings that I don't need.I would like to remove the login at start. What do I remove to make it go away? Second one is Keyring. Is it necessary? Can I remove it without causing problems?

View 8 Replies View Related

Ubuntu :: Cron Job Not Running - How To Make It Run

Mar 3, 2010

I have a cron job set up to backup my ~/ directory everyday at 10:00. But the cron job is not running. here is my confile that I loaded into crontab...

Code:

#backup everyday @ 10:00 AM and 10:30 AM
00 10 * * * /home/dave/bin/backup.sh
30 10 * * * /home/dave/bin/music_backup.sh

[code]....

the *.sh are executable. I logged out and logged back in since I put the cronfile in crontab. The commands that I use in the *.sh files work fine when I run them manually.

View 9 Replies View Related

Ubuntu :: Remove Live Session User ?

Apr 15, 2010

Before I start, I have searched everywhere I can for help with this, tried everything suggested and still cant do this.

The annoying thing is ive done it before but cant replicate it.

I have ubuntu installed on my usb stick using lili usb creator.

I want to remove live session user (username ubuntu).

Ive created my own account with privileges etc.

Ubuntu is 9.10.

View 6 Replies View Related

General :: How To Make Growisofs Working With Cron

Aug 9, 2010

I make a script to automate burning backup files on dvd. It works fine if I start it from root user, but if I start it. From cronjob do noting. I try on growisofs the option -use-the-force-luke=force but nothing happens. I check the env of cron:

HOME=/root
LOGNAME=root
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PWD=/root
SHELL=/bin/bash
SHLVL=1
XDG_SESSION_COOKIE=3e0d70f7b71074a0b1fff4bb4aa97d13-1281297181.926502-724038309
_=/usr/bin/env
and it seems ok i've got my script in /usr/local/bin and growisofs in /usr/bin

Code of my script below:
#!/bin/bash
bkup_path='/bkrepo/';
prefix='PAR*';
totdimfile=0
for FILE in $(/bin/ls -r $bkup_path$prefix)

do
dimfile=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $5}' `
let "totdimfile += dimfile";
if [ "$totdimfile" -lt "4700000000" ]
then
NAMEFILE=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $8}' `
ALLNAMEFILE="$ALLNAMEFILE $NAMEFILE";
fi
done

/usr/bin/growisofs -use-the-force-luke=force -Z /dev/scd0 -R -J $ALLNAMEFILE
/usr/bin/growisofs -M /dev/scd0=/dev/zero
/usr/bin/eject
end code of my script

View 1 Replies View Related

Ubuntu :: Sudo Apt-get Remove Gnome Session Errors

May 30, 2011

This is the error I get when removing gnome-session:
alex@alex:~$ sudo apt-get remove gnome-session
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
ubuntu-desktop : Depends: gnome-session but it is not going to be installed
Recommends: banshee-extension-ubuntuonemusicstore but it is not going to be installed
Recommends: gnome-accessibility-themes but it is not going to be installed
Recommends: ubuntuone-client-gnome but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

And this is what happens when I do apt-get -f install:
alex@alex:~$ sudo apt-get -f install
[sudo] password for alex:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done

The following package was automatically installed and is no longer required:
xulrunner-2.0-mozjs
Use 'apt-get autoremove' to remove them.

The following extra packages will be installed:
gnome-session
Suggested packages:
desktop-base

The following packages will be upgraded:
gnome-session
1 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
Need to get 0 B/11.8 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 250821 files and directories currently installed.)
Preparing to replace gnome-session 3.0.1-0ubuntu1~build2 (using .../gnome-session_3.0.2-0ubuntu3~natty1_all.deb) ...
Unpacking replacement gnome-session ...
dpkg: error processing /var/cache/apt/archives/gnome-session_3.0.2-0ubuntu3~natty1_all.deb (--unpack):
trying to overwrite '/usr/share/xsessions/gnome-shell.desktop', which is also in package gnome-shell 3.0.1-0ubuntu1~build1
Errors were encountered while processing:
/var/cache/apt/archives/gnome-session_3.0.2-0ubuntu3~natty1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

View 9 Replies View Related

General :: Make All Cron Jobs In Script Files?

Jun 28, 2010

in my linux box i have lot of cron jobs. i need to make all cron jobs in script files. is it possible to make this. like[URL]Now how i change this in a script file

View 4 Replies View Related

Ubuntu :: Remove A Menu Item From The Indicator Applet Session?

Apr 6, 2010

The indicator applet session gnome-panel applet (the one that lets you change your status for empathy/pidgin, logout, switch user, etc.) has the suspend and hibernate options. My computer will not suspend or hibernate properly (every time I try to wake it up, the hard drive will work for about 4 minutes and the screen will stay blank so I have to restart) and I would like to remove those items from the menu. I would just like to know if there is a way to remove the hibernate and suspend items in the indicator applet session menu. I've already tried browsing around gconf-editor to no avail. If it is not possible, let me know

View 3 Replies View Related

Ubuntu Servers :: Make Sure Cron Job Copies Files Correctly

Jul 1, 2010

I made a Bash script that is fired by a Cron job every morning. It dumps an SVN backup on some Samba shared drive. I would like to know how I can make sure the job worked correctly without having to verify the shared drive every morning. Right now, I take the job's output, save it to a log file and send this file by email. But the ouput isn't so great.

[Code]....

View 2 Replies View Related

OpenSUSE Install :: Remove The 11.2 Grub And Make The 11.1 Grub Master Again?

Jun 7, 2010

I have installed 11.2 next to my 11.1 version I have a few big problems with 11.2 and I like to completely remove it. there are 2 grub's active now. I want to remove the 11.2 grub and make the 11.1 grub master again, but I do not know where to change this, the MBR points to the 11.2 grub and changing menu.lst probably does not have any effect.

View 6 Replies View Related

Debian Configuration :: Make A Cron Job That Mounts A 2nd Local Hard Drive?

Jul 1, 2011

I am making backups and I need to make a cron job that mounts a 2nd local hard drive.

It is not listed in my fstab file and I mount it manually in nautilus (having to type a password). It is designated as /dev/sdb1 and /media/repo when it is mounted. Can I get cron to mount it and then add the password or do I have to add it to fstab?

View 3 Replies View Related

OpenSUSE Install :: Cannot Open ConsoleKit Session: Unable To Open Session

Apr 11, 2010

The following message comes up when I boot up: Logging in user Warning: Cannot open ConsoleKit session: Unable to open session: Launch helper exited with unknown return code 0. When I press OK, the system completes the start up and everything looks normal. But when I try to connect to internet, I get the following message:

KNetworkManager cannot start because the installation is misconfigured. System DBUS policy does not allow it to provide user settings; contact your system administrator or distribution. KNetworkManager will not start automatically in future. If I reboot the system, I logg in successfully. So far the problem has appeared approximately upon every second time I boot up. Rebooting the system seems to take care of it.

Don't know what info is of interest. I'm using

Opensuse 11.2
KDE 4.4.2 (Factory)
After upgrade from 4.4.1 to 4.4.2 it worked fine for a week or so.

View 9 Replies View Related

General :: Make Sudo Session An Hour And Not Few Minutes In Ubuntu 10.04?

Jun 7, 2010

How I can make sudo Ubuntu 10.04 session an hour and not few minutes?

Now I have to write my password for sudo commands every few minutes.

View 4 Replies View Related

Ubuntu :: Make Kde Not To Start/memorize Previous Session After Reboot?

Aug 25, 2010

i am one gnome-user, but need to set up kde/Kubuntu/Mint 9 KDE on my wifes computer. So, i have few questions:

1) how to make kde not to start/memorize previous session after reboot?

2) in gnome-power-manager i can read Battery Health (mAh, Design Capacity...)-something like that in KDE? In KDE Power manager i have no such readings.

3) is there some cleaning tool as for gnome ubuntu-tweak?

View 5 Replies View Related

General :: Make System Boot Up Into Window Manager-less X Session?

Dec 30, 2010

I am setting up a thin client boot (over NFS) with x2go thinclient. So far everything works, the client boots over PXE, mounts the NFS dir on the server. But the x2go thinclient system does not install properly. I end up with a CLI prompt, to log in. It does not start X, not does it start the x2go client in a window managerless X session.

X2go is, in case you don't know it yet, a cool Linux X terminal session system, very much like Nomachines NXserver. I like it very much, since my experience, especially with freenx has not been good.

Now I am missing some Linux knowhow here: I know that after startup (the CLI part), the display manager is started (GDM or KDM), which starts the X server and shows the graphical login. Now since X2go does not properly setup and there is no documentation about the thinclient part, I will set it up myself.

I need the system to boot up, startx and then immediately start an X program (x2goclient), without having to log in before.

I found that putting a .xsession file in to the users home dir causes that script to be run when you invoke startx.But when I put startx in a script that runs as the last one in the runlevel (as in S05startx), it does not run at all.

What is the proper way to run X and a program on it directly, right at startup?

View 10 Replies View Related

Software :: Unable To Make Ptpcam Working - ERROR: Could Not Open Session

Jun 25, 2010

After finally getting libptp2 to compile I find that ptpcam does not work. This has worked perfectly fine before with the same camera using Slackware 12.0, I am now using Slackware 13.1 and ptpcam will simply not work. The error is as follows:

Code:

x86_1# ptpcam -l
Listing devices...
bus/dev vendorID/prodID device model
ERROR: Could not open session!
Try to reset the camera.

I have tried to reset with "ptpcam -r", I have also tried to disconnect and reconnect the camera to the USB system, I have tried to reboot the computer, I have tried to use different versions of libptp2 -- all to no avail. The strace shows the issue is apparently a failed ioctl(), although I have no idea why it fails:

Code:

open("/dev/bus/usb/002/004", O_RDWR) = 6
write(4, "1"..., 1) = 1
read(3, "1"..., 1) = 1

[code]....

I have verified that the camera is working in Windows 7 on the same physical computer and I can see the camera from lsusb and dmesg output when I connect it to the USB system. This system is Slackware 13.1, Linux x86_1 2.6.33.4-smp #2 SMP Wed May 12 22:47:36 CDT 2010 i686 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux.

View 1 Replies View Related







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