Red Hat / Fedora :: Running A Script As Root On System Startup?

Apr 29, 2009

There is a script that I want to run as root when the machine boots up(which starts the Redhat Certificate System services). The problem I have is if I put this on rc.local it wont run because I havent logged in as root. Is there a way that I can run this without logging in as root at the machine startup?

View 5 Replies


ADVERTISEMENT

General :: Running A Script At Startup As Root?

Apr 14, 2010

Is there a way I can run 'completely' one of my script when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in?

What does the script do? The script mounts a partition, looks for a file in that partition and finally on the basis of that file a decision of copying a partition to another partition is made. That copying is done via

[Code]...

View 5 Replies View Related

Ubuntu Servers :: Running Script As Root On Startup?

Jul 29, 2010

I am trying to run my script at startup but it doesn't run the script as root. Do I need to add my root username and password in the script, or somewhere else?

View 1 Replies View Related

General :: Running Shell Program On Startup As Root In Terminal

Aug 4, 2010

I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.

View 10 Replies View Related

Ubuntu :: Running Evolution In The Background At System Startup?

Jul 3, 2010

How do I make Evolution run at system start-up in the background and check my in-box?

View 1 Replies View Related

General :: Grub - Boot From Usb / During Startup System Complains About No Root Bein Found On /dev/sdb1?

Jun 2, 2011

I have installed a new Linux distro (just to test it) on my usb memory stick, and I'm trying to run it. I don't know if what I did is correct so far, anyways here's what I have:

Grub on sda (internal hard disk)
sdb with no boot loader (memory stick)

In grub I've been doing:
root (hd1,0)
kernel /kernel-genkernel-x86_64-2.6.37-sabayon root=/dev/sdb1 vga=normal
initrd /initramfs-genkernel-x86_64-2.6.37-sabayon
boot

This seems to work (as opposed to when I forgot the root= parameter, which almost destroyed my linux on sda1 ), but during startup the system complains about no root bein found on /dev/sdb1. I also tried (hd1,0), but it didn't change much.

I'm sure I can boot an OS from usb on my computer, so doesn anyone know what I'm doing wrong?

View 4 Replies View Related

OpenSUSE :: GParted File System Support / Running Programs As Root

Sep 27, 2010

I have GParted installed, running openSUSE 11.3 with GNOME. When running GParted, it always grayed out most file system actions, supporting only hfs fully. This made no sense, as I had all the required packages installed for other file system support. However, I recently figured out how to get it to work. Using the installed menu button doesn't work, running "gnomesu /usr/sbin/gparted" doesn't work; to get it to work, I have to open up a terminal, type "su -" to log in as root, and then run gparted. The menu button and gnomesu both prompt for a password, so it should be running as root, but launching it through the root terminal is the only way to actually get it to work. Is one root different from another?

View 5 Replies View Related

Fedora :: Running A Command At Startup?

Mar 12, 2010

I'm trying to get synergy+ to work on Fedora 12 on start up. I'd like to be able to log into Fedora using my keyboard and mouse through synergy+. I've tried adding the line
Code:synergyc <localipaddress> at the end of the /etc/rc.local file but I still can't use my keyboard and mouse to log in. I've also tried adding the lineCode:su <username> -c "synergyc <localipaddress>" to /etc/rc.local but it still doesn't work. Just to clarify, I do have synergy+ working on Fedora but I need to start it after logging in on each reboot by switching my keyboard over to the other computer.

View 2 Replies View Related

Fedora :: Running XScreenSaver Daemon On Startup

Jan 23, 2010

I'm having some problems getting my screensaver to work automatically.If I start the screensaver config program then it gives me this message: "The XScreenSaver daemon doesn't seem to be running on display ":0.0". Launch it now?" If I click yes then my screensaver works exactly as expected.How can I get the XScreenSaver daemon to start automatically?

View 3 Replies View Related

Fedora Networking :: Rt2870/WUSB600N Not Running On Startup?

Oct 4, 2009

my wireless adapter(WUSB600N) doesn't run when I log in. The driver is loaded on start-up but the green light is not on the adapter. I have to physically disconnect the adapter and plug it back in to get it recognised and it works fine afterwards

View 2 Replies View Related

Red Hat / Fedora :: Running Command At Startup As Normal User?

Dec 23, 2008

I'm trying to start an Oracle Integration server as user "oracle" at system startup and my approach was to place a couple of lines in /etc/rc.localsu oracle/home/oracle/startallSomething is not quite right about this as it seems to leave some processes owned by root.

View 2 Replies View Related

Fedora :: Emerald And Compiz Static App Switcher Not Running At Startup

Nov 2, 2009

I have problem for emerald and compiz in KDE fedora 11. The problems are:
1. Emerald is not running at startup so I have to type emerald --replace every time I login otherwise I get no windows border.
2. The static application switcher in compiz is not running at startup so I have to go to ccsm and disable then reenable it again otherwise when I point my mouse to the edges of my screen it wont do anything.

View 4 Replies View Related

Fedora :: Have The Acer-wmi Module Running At Startup For Wireless Card?

May 20, 2010

I'm needing to have the acer-wmi module running at startup for my wireless card. In ubuntu this is located at /etc/modules and I was wondering where the same file is within Fedora

View 2 Replies View Related

Fedora :: Running Something As Root From An Icon?

Nov 13, 2010

I have some software that I need to run as root, I know I can open a terminal and su etc. if I was going to stay there to control it, that would be fine, but as the software is graphical, I would like to click it's icon, be prompted for the root password, then have it start.

View 3 Replies View Related

Red Hat / Fedora :: Running A Script As Root?

Jul 23, 2010

I'd like to run my Apache start-up script under my own userid and not have to su over to root each time in order to run it. But if I run the script as myself I get errors on the "/usr/local/apache2/bin/apachectl start" portion (which is the 'main' purpose of the script):

(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

I don't care to waste anymore time just now, or spend anymore energy just now trying to resolve *those* problems. The script works fine when I execute it logged in as root (su). I've changed the permissions to 4777 so that *me* running the script that is executed *as root* should work:

ls -l apache_up.sh -rwsrwxrwx. 1 matt matt 1114 Jul 22 16:42 apache_up.sh But it still gives the above errors. I thought changing the sticky bit would work. How do I run this script myself and have it execute the "/usr/local/apache2/bin/apachectl start" command - so that I don't have to su each time?

View 4 Replies View Related

Fedora :: Running TeamViewer 5/6 As A Root?

Jan 1, 2011

There is a very simple method to Run TeamViewer as a "root". This can be risky but if any users wants to running TeamViewer 5 and 6 As root then I have written a small article for the same. Requesting you to visit article and let me have some feedback or whatever comments you feel. read this article :- http://blog.ask4itsolutions.com/2011...tu-rhel-cento/ This practical performed on Red Hat Enterprise Linux 5.x, Ubuntu Desktop Edition, Fedora and CentOS

View 4 Replies View Related

Fedora :: Sudo Running As Root Instead Of Specified User?

Jan 25, 2010

I have a weird question about the sudoers file. Currently, I am running "Red Hat Enterprise Linux ES release 4 (Nahant Update 8)".

I edited the sudoers file (via visudo) and added the following:

User_Alias RPTS2 = vtmtest

RPTS2 xxxxx = (jboss) /oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh

The user (vtmtest) issues the following command

sudo /oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh

and gets this message:

user vtmtest is not allowed to execute '/oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh' as root on xxxxx

When I look at the log, I see the following:

Jan 25 14:17:57 xxxxx sudo: vtmtest : command not allowed ; TTY=pts/12 ; PWD=/export/home/vtmtest ; USER=root ; COMMAND=/oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh

1. Why does sudo try to run as the root user, when I have specified in the command to run as jboss?

2. Do I need to specify anything else so that this command can run as the "jboss" user and not "root"?

View 2 Replies View Related

Fedora Installation :: Running As Root All The Permission Are +xrw And Still Does'nt Working?

Jun 15, 2009

(xcdroast:22631): WARNING **: Failed to access cdrecord. Please check the permissions and ownership of /usr/bin/cdrecordcdrecord is a link to wodim, i'm running as root all the permission are +xrw and still does'nt working

View 1 Replies View Related

Fedora :: System Hangs At Startup

Dec 23, 2009

I booted up the computer (Fedora 11) and it hung at the blue screen with the F bubble in the middle. I waited for quite sometime without any change to the system I held down the power button to power off and tried starting the computer again with the same result.

When the sytem reboots and I press alt+ctrl+2 i see messages like below on the black screen:Unknown username "root" in message bus configuration file.Could not get password database....Failed to start message bus: Could not get UID and GID for username "dbus"..Please help me get the system up. I saved some data and did not take a backup. Is there's a way I can restore my system to a previous date? Or backup my data somehow?

View 2 Replies View Related

Fedora :: Getting Console Input During System Startup?

Jan 26, 2010

I am setting up a system for students to use to run lab-based exams. On bootup, the system needs to download an encrypted file containing the exam files, and then ask for a decryption password.

I want to do this during system startup (before anyone logs in). But I am having trouble getting keyboard input at this point.

I've put a script in /etc/rc.d/rc5.d/S99examsetup along the following lines:

Code:
#!/bin/bash
echo -n "Enter password:"
read EXAMPW
echo "You gave me: $EXAMPW"

but it doesn't respond to keyboard input. I have tried appending "< /dev/console" but this also doesn't work; in fact if I insert 'tty' before the first 'echo', it tells me that /dev/console is the tty being used for input anyway.

Is there a way round this? I can use plymouth ask-for-password, but that doesn't seem very portable, and it interacts badly with the graphics driver on one of my machines.

View 4 Replies View Related

Fedora :: Create A Startup Disk Of System?

Jul 9, 2011

I am currently in place where I get high speed internet connection. I am using F15 64 bit version. I've installed a lot of softwares and updated theOS completely. My question is is there any way that I can create a startup disk of my system so that I can install it in other system of same configuration.

View 1 Replies View Related

Ubuntu Security :: Giving Root Permission To An Application But Without Running It As Root?

Jan 20, 2011

want to run VirtualBox with root permissions. Trouble is that only when run as root i can access attached USB devices inside of a virtual machine, otherwise, these a greyed out).Now running VirtualBox as a root user also changes the configuration folders, making all my virtual machines already defined disappear. I also don't want to copy all to the root configuration folders. Is there a way to give the VirtualBox root permissions but without actually running the application as a root user. Is it possible to do without changing the permissions of the non-root user, i.e. i don't want my user to have all root permissions, due to security considerations.

View 1 Replies View Related

Fedora :: Root User And Got Magicjack Working Under A Winxp Running On A Vbox

May 22, 2011

I finally got magicjack working under a winxp running on a vbox. But somehow I have to login as root and run the vbox as root. otherwise if I run the vbox as a normal user, I cannot mount the magicjack usb device, it appears as a grey disabled box. I am sure this is some kind of permission issue, but not sure how to grant the permission.

View 3 Replies View Related

Programming :: Suid Disabled From Running All Scripts Or Just From Running Them As Root ?

Sep 4, 2009

Is suid disabled from running all home made bash scripts or just from running them as root or:

Who would know for sure.

I googled several combinations of Mandriva Linux how-to suid disabled setUID etc... so far all I found was "many distributions are disabling suid for security reasons" nothing specific.

View 2 Replies View Related

Fedora :: Removed Tomboy Notes From System Startup?

Oct 20, 2009

I've removed Tomboy notes from the startup applications by accident :-( I've tried to re add it again by typing in tomboy in the command area, but when the system starts up, the main window for tomboy notes opens up & when i close the main window tomboy shuts down.How can I get it the way it was before, just a icon in the notification area on system start up?take a look at the system start up command for Tomboy Notes and post it I know the command tomboy notes use in the applications menu * it's Tomboy* but I can't remember the code in the start up applications or system start up command to get it just a icon in the notification area without the main window opening up every time I start gnome,

View 3 Replies View Related

Fedora :: Where To Load Module Snd-mixer-oss At System Startup?

May 18, 2011

Where I can load the module snd-mixer-oss at system startup?

View 2 Replies View Related

Fedora Networking :: Nmbd Doesn't Want To Start At System Startup

Jan 25, 2010

I It does not start when the system boots. The smbd daemon is present and there are no suspicious messages in the system log, dmesg or the samba logs. The nmb service *is* enabled at all of the relevant run levels and does start if I issue the command "service nmb start" as root after I log in. This particular box's networking is 802.11n via a usb port and is under the control of the network manager. I have another fedora 12 box with an internal intel 5100 802.11n card and it does not have this problem.

View 10 Replies View Related

Fedora :: Add Something To Start When Logged In - System - Preferences - Startup Applications ?

Mar 4, 2010

How to add something to start when you are logged in (System -> Preferences -> Startup Applications), but I want to know, where this parameters stored.

View 2 Replies View Related

Fedora :: X Server Freezes On Startup After Yesterday's System Update / Fix It?

May 15, 2010

After yesterday system update the x server won't start up anymore. It locks immediately with blank screen leaving the computer unresponsible until hard reboot. I hat to once again go with the "vesa" driver, as I mentoined earlier in another thread it is a life saver, always works. My video card is integrated Radeon HD3250 - video driver was fglrx from ATI itself. "radeon" driver now reports that modesetting is not supported and will not load with EE-type X server error.

Anyone else experienced this? Are there any changes in the most recent X server that once again break compatibility with the official ATI driver?

View 3 Replies View Related

Fedora :: Root Login Works At Shell - Auth Error When Running Admin Tools

Jan 25, 2011

I login as normal user. I can 'su root' fine - password authenticates. However, If I try to run System->Administration->Users/Groups, when it asks for root password, it is rejected. When I run updater, it reports failure to authenticate, but doesn't even ask for root password beforehand. Is there a cached password someplace?

View 7 Replies View Related







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