Ubuntu :: Run A Script As Root After Reboot?

Aug 14, 2011

Everytime I reboot Ubuntu, I have to run a sudo command. The vmware virtual network card is only accessible by root. I need normal users to be able to use it, after giving it proper permissions with chmod everybody is happy, until I reboot, then the device is recreated/reset to only root having access to it.

After reboot:

Code:
ls -l /dev|grep vm
Quote:
crw-rw-rw- 1 root root 10, 56 2011-08-14 06:06 vmci
crw------- 1 root root 10, 165 2011-08-14 06:06 vmmon
crw------- 1 root root 119, 0 2011-08-14 06:06 vmnet0

[Code]....

I need to be able to script that command somehow... however, it needs to be a sudo command, and I don't want to have to enter the root password after a reboot. I need anyone to be able to pull the plug on the server and turn it back on and for it to work without my interaction everytime it is rebooted.

View 5 Replies


ADVERTISEMENT

Ubuntu :: Cannot Reboot Without Invoking Root Password

Feb 12, 2010

I'm running Ubuntu 9.10 and I just installed mythtv to turn it into a PVR. However now I have to type my root password everytime I click reboot. I was thinking maybe it was a user group thing but I couldn't find anything.

View 1 Replies View Related

General :: RHEL 5 Asking For Root Username On Reboot?

Aug 16, 2010

I am new to Linux, I had Just Installed Red Hat Enterprise Linux 5 on y desktop PC, the installation is completed ok, while installation process, RHEL ask me for the root password and I had entered my password, now after the installation is finished and my PC Reboot, RHEL asks me Username, Now here I am confused, while installing RHEL it had only asked me the Password, now what is the username for RHEL? One more thing I would like to ask, I had one more Hard Disk Drive of 80GB and on it I had installed Windows XP, now I want to Dual boot Windows XP and RHEL, can I do it from two different OS installed in two different Hard Disk Drives, If yes Please Provide Procedure.

View 11 Replies View Related

Server :: My Root Password Is Getting Reset After Every Reboot

Jun 4, 2010

I am using RHEL 5.4 my root password is getting reset after every reboot.every time i had to change the password from kernel to access the root.i am unable to find the where the problem is.

View 2 Replies View Related

Fedora Installation :: Root Password Not Activate After Reboot?

Apr 22, 2009

The root password did not activate after reboot. First at install root password was completed with ok.

View 3 Replies View Related

OpenSUSE Install :: Root Sends Reboot Signal?

May 26, 2010

My server is opensuse 11.1 I recently wrote a small script to quickly shut down or reboot my server (I needed this because I need to close an application manually before shutting down. The shutdown line in the script was: /sbin/shutdown -r now When I tested the script (as root) from the console terminal, It worked just fine but after reboot strange things started to happen if I logged in as root - while the mouse works, the keyboard freezes (rebooting the server does not help). While I can still use console terminal, if I try to start any application that requires root permission or log in as root from my sftp client then I will get an error on the server that says; broadcast message from root (time & date), the system is going down for reboot now! I have since commented out level 6 in my inittab, so that now when root sends a reboot signal and It shows the message about going to reboot, it does not actually go into reboot anymore because of the commented out line but that is ofcourse not an healthy way to go about it.

View 4 Replies View Related

Ubuntu Servers :: Cold Boots Fine But Get 'Gave Up Waiting For Root Device' On Reboot

Mar 31, 2011

Recently setup Ubuntu Server 10.10 on an old Dell Poweredge 2650. It seemed to be working perfectly until I did my first reboot. I tried changing the 'root' reference on the linux line at the grub menu with no luck. I suspect the problem is something else but I have no clue.

So far the behavior seems completely consistent. If I physically power the machine down and start it back up everything works perfectly. However, if I do a sudo reboot now I'll end up at the initramfs prompt. I'm not comfortable setting up my dev environment on this box until I'm sure it will be stable. In case it matters the machine is running a single scsi drive and doesn't have a raid controller.

View 6 Replies View Related

OpenSUSE Install :: Login As Root In Terminal To Restart/Reboot The System?

Jan 28, 2010

I added a whole slew of apps to my favorites and lost the 'Shutdown' option...every time I try to shutdown in the Terminal I am told I must be logged in as Root to do so...I can't figure out how to do this I'm a newbie to Linux but a CNE 5 -haven't used it 10 years- an MCP and A+ certified I've searched local help and SuSe's site and I can't find anythingI've only spent a couple of hrs on this and have had SuSe 11.2 installed since last Sunday

View 9 Replies View Related

General :: RHEL 4 Reboot Causes Tomcat Process To Not Be Started By Non-root Account

May 25, 2010

I have a startup script placed in /etc/init.d wherein I make the following call:

nohup sudo -u myuser $CATALINA_HOME/bin/startup.sh 2>&1

This causes Tomcat to be run as myuser, which is expected. However after issuing the reboot command the system starts up and root is now the owner of this process. How can I force the process to be started off as myuser on reboot?

View 1 Replies View Related

General :: Grant Access To A Non Root Users To Reboot,halt,configure?

Dec 14, 2010

Is there any way to grant access to non root users to use some commands like reboot and date and some other commands that root user can work with .I tried chmod on their binaries and added them to root group but nothing happened.

View 5 Replies View Related

CentOS 5 Server :: Unattended Reboot With An Encrypted Root File System?

Mar 31, 2009

Centos 5.3 includes Ext4 and improved support for encrypted file systems but it appears to be aimed at laptop/desktop systems, in that a password must be entered at boot time.

Is it possible to have a server with an encrypted root file system boot up without entering a password?

Mandos will do it...
http://wiki.fukt.bsnet.se/wiki/Mandos
...by serving up the password from another server...
http://packages.debian.org/squeeze/mandos
...to a client loaded into the initial RAM disk environment...
http://packages.debian.org/squeeze/mandos-client
...but it's not available on CentOS, and is only in Debian unstable.

Is there a similar (or any) solution for CentOS?

In particular, I'm envisaging encrypted virtual machines being served passwords from their virtual host.

Alternatively, the data that *really* needs to be protected could be encrypted while the system core remains unencrypted. But then the keys to decrypt the file system must be stored in the unencrypted portion, so this is not an effective method.

View 3 Replies View Related

General :: Embedded Reboot Crash - Error Executing The Reboot Command

May 4, 2011

I'm working with Linux 2.6.23 on an embedded device and am receiving the following error executing the reboot command.

View 2 Replies View Related

General :: Will Not Reboot After Install (Arch) - -bash: /sbin/reboot: Input/output Error

Oct 7, 2010

I am using sda1 as /, which is a bootable drive. I do not know if my problem is that I did not create a /boot drive. After removing the iso dvd, I tried to reboot and I get this back: -bash: /sbin/reboot: input/output error Then it returns me to the terminal prompt.

View 6 Replies View Related

Red Hat / Fedora :: Identify Reboot Source Or Cause Of Reboot?

Feb 16, 2011

last -a shows server rebooted, how to identify the source or cause of reboot? thx reboot system boot Wed Feb 16 08:52 (02:0 2.6.21.7-2.fc8xen

View 2 Replies View Related

General :: Ubuntu 6.06: Mounting /root/sda1 /root Failed: No Such Device

Jan 22, 2010

An old machine in our office, running Ubuntu 6.06 all of a sudden will not boot up. I get the following info during boot:

Uncompressing Linux... Ok Booting the kernel
mount: Mounting /root/sda1 /root failed: No such device
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory

[code]....

I haven't changed anything on the system as far as I'm aware, and I ran some HD diagnostics and everything seems fine. however when I try to mount the drive with the following command:

sudo mount -t ext3 -o rw /dev/hda1 /mnt

I get the following error:

mount: wrong fs type, bad option, bad
superblock on /dev/sda1, missing code
page or helper program, or other error
In some cases useful info is found in
syslog - try dmesg | tail or so

I ran fdisk -l and it says the partition type is Linux. The output after running dmesg | tail :

[12207.483801] init_special_inode: bogus i_mode (101)
[12207.483809] EXT2-fs: corrupt root inode, run e2fsck
[12260.427078] init_special_inode: bogus i_mode (101)

[code]...

Update: After running e2fsck -p /dev/sda1, I get the following info:

/dev/sda1: clean, 142449 / 9584640 files, 5402711 / 19161520 blocks

View 1 Replies View Related

Ubuntu :: Root User Directory Does Not Exist, Root Password Not Recognised?

Oct 26, 2010

I no longer have access to my root desktop. On a session I attempted to change the root username but i apparently assigned it a wrong directory that does not exist. When I rebooted with my new root username, i was instead recognised as a simple user (no root privileges). I tried the console to change to "old" root but root password is not accepted and there is no way to access to sudoer files. it seems that inserting a new username requires root privileges and i am back to square one. Simply logging with old root username and password after restart gives me a blank screen with nothing on it and cannot even reboot.

View 9 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

Ubuntu :: Can't Cd To Root Acount /home In Terminal - Sudo Cd /root Fails?

Jul 25, 2011

can't cd to root acount /home in terminal - sudo cd /root fails?

View 3 Replies View Related

General :: Did Not Find Any Option For Root Password For Root User In Ubuntu 9.10?

Mar 2, 2010

i used opensuse 11.1 ...there is option for root user to create password for root...but for ubuntu i did not find anything like that...so how can i create root password....or how can i use root

View 1 Replies View Related

Ubuntu :: Deleted Something As Root And Did Not Get Space Back / Nothing In Root Trash?

Jul 22, 2010

So I transfered a few folders with videos in them to the public folder on an Ubuntu 10.04 laptop I have from my Ubuntu 10.04 64bit laptop. When I wanted to delete the folder I didn't have permission so I ran "gksudo nautilus" so I could delete it as root. So I deleted the folder but I did not get the space back!

I went to /.local/Shared/Trash and one of the folders I deleted was there but deleting it didn't get that space back either.

I did some searching but most of what I find doesn't help or tells me to look in the folder /.local/Shared/Trash folder but that didn't help any.

View 3 Replies View Related

Ubuntu :: Make A Shell Script Run With Root AND Non-root Priveledges?

Jul 28, 2010

I have a bit of a dilemma.

I'm using XFCE and it doesn't by default lock the screen before hibernating. I see this as a bit of a security risk, and as I can't hibernate while the screen is locked, I'm a bit lost as to how to achieve this.

I've begun editing /etc/acpi/hibernate.sh, here's what I have so far code...

If I run with sudo, the system hibernates, but gnome-screensaver will not fire. I can verify this by trying "sudo gnome-screensaver-command --lock". The screen goes black, but is not locked. The screen locks properly without sudo.

So the only solution I can see is to edit /etc/acpi/hibernate.sh in such a way that gnome-screensaver-command runs under the current user, and pm-hibernate is called as root.

Also, when I click the HIBERNATE button in XFCE, how does it call pm-hibernate under root without prompting me for a password? I normally wouldn't be interested in such things, but as it seems relevant to my problem I'm a little more eager to learn

View 3 Replies View Related

Ubuntu :: Root-User : Unset The Root Password?

Oct 14, 2010

A friend of mine has told me to set a root password and use root (f.e. switching to su in terminal and work with root rights instead).Is there any way to unset the root password? I know how to use sudo now.

View 9 Replies View Related

Ubuntu :: Switch From Root (#) To Normal Non-root Prompt($)?

Mar 20, 2010

how do i switch from root (#) to normal non-root prompt($). I'm new to linux

View 3 Replies View Related

General :: [FYI] "last -f <old Wtmp> -x Reboot Shutdown" Incorrect For Last Reboot And Shutdown?

Mar 25, 2010

Further to this LQ thread which Tinkster solved by suggesting the last command (thanks Tinkster) I have been exploring last -x reboot and have found that the reported duration is incorrect for the last reboot and shutdown when a old wtmp file is used. Not having a record for the following shutdown, last assumes that the system has been up until the current time and similarly for the shutdown.

The output comes in time order, latest first, each line showing the time of the reboot and the uptime from then to shutdown. Using last -x reboot shutdown to show the shutdown time, here's an illustration

Code:

shutdown system down 2.6.29.6-smp Sun Mar 7 15:35 - 03:02 (11:27)
reboot system boot 2.6.29.6-smp Sun Mar 7 09:35 (05:59)
09:35 until 15:35 is 05:59.

When the uptime exceeds 24 hours it is shown as (<days>+<hours:minutes) like this
Code:
shutdown system down 2.6.29.6-smp Sun Feb 21 12:39 - 13:20 (00:40)
reboot system boot 2.6.29.6-smp Sat Feb 20 09:39 (1+02:59)
09:39 until 12:39 the next day is 1 day 02:59.

The time in parentheses at the end of the shutdown lines is normally the time until the next shutdown.

So far so good. The incorrect output is for the last reboot and shutdown of an old wtmp file. Here's the output of last /var/log/wtmp -x reboot shutdown; last -f /var/log/wtmp.1 -x reboot shutdown

Code:

[snip]
reboot system boot 2.6.29.6-smp Fri Mar 12 07:42 (01:54)
shutdown system down 2.6.29.6-smp Fri Mar 12 01:31 - 09:37 (08:05)
wtmp begins Thu Mar 11 08:25:26 2010
[snip]
reboot system boot 2.6.29.6-smp Wed Mar 10 14:12 (15+01:42)
shutdown system down 2.6.29.6-smp Wed Mar 10 12:41 - 15:54 (15+03:13)
[snip]

The boot started at "Wed Mar 10 14:12" which had an actual uptime of 1 day 11:20 is reported as 15 days 03:13 which is the time from then until the last -f /var/log/wtmp.1 -x reboot shutdown command was issued. The time from shutdown to shutdown is similarly affected.

View 1 Replies View Related

Debian :: Root Access And Desktop Disabled \ Couldn't Open The Root Terminal?

Feb 19, 2011

I was using the latest stable release of Debian, dual-booted alongside Windows Vista, with the GNOME desktop, installed via netinst, trying to build and install a library that I knew and trusted, when suddenly I couldn't open the Root Terminal. I clicked the link (in Applications->Accessories (I think, whatever the top one is)->Root Terminal), and in the taskbar I saw an item that said "Starting Root Terminal". A few seconds later, that went away, but the terminal still wasn't open. I tried the regular user terminal, to see the same thing happen. Unsure of what was happening, I tried restarting my computer, since that's always the first step you should take in computer problems.

When I restarted, GNOME wouldn't start. The screen would flash a bit for a few seconds, then a dialog box would appear over a background of static that said "The greeter application is crashing. Attempting another one...".t would then go back to the DOS-style kernel, wait a second, and then the same thing would happen. After several of that, I would get a blue screen which said something to the effect of "It has been detected that the desktop environment has crashed six times in the past 30 seconds.

Waiting two minutes before trying again." When it did that, I tried logging in as root to assess the problem. I gave it the correct password, but it said that it was an incorrect login. After several tries (to ensure I didn't mistype the password), I logged in as myself. Same problem. I tried the su command, with the correct password, and it said it couldn't authorise it.

After a lengthy conversation with a friend of mine who was very good with computers, he basically summarised that he had no clue, but that his best guess would be a virus. Upon running the Linux installer, I found the Repair option. Not being particularly familiar with Linux, I used it simply to backup my important files onto a flash drive. I then tried running the Install option, in an attempt to simply write over my existing Linux and make it new again. The installer, however, consistently froze up when trying to start the partitioner, on the "Checking disks..." stage. I figured it was a problem with my partition. In my naivete, I simply used the Windows tools to clear that partition... It destroyed GRUB too, so I couldn't run any OS. I figured my computer was pretty well screwed, and at that point just decided to bring it into the shop and have them completely wipe it.

my computer was backed up onto an external hard driven I brought it back, I reinstalled Windows. Upon restart, it said that it was still looking for GRUB, which made no sense to me. After messing around with it a bit, I decided to just reinstall Linux too. To my lack of surprise, that fixed the problem. Both OS' now ran just fine. The first thing I did on Debian was to install the Clam Anti-Virus, which I understood to be one of the best Linux anti-viruses. However, within about 10 hours, got the same problem as originally. I wasn't doing any of the same things, and between the lack of consistency in activities and the fact that I had an anti-virus running,figured it wasn't a virus. Not knowing what to do, I just left it and have been using Windows since.

View 8 Replies View Related

OpenSUSE Install :: Create A Root Backup Image Of The Root Partition ?

Oct 12, 2010

Since I installed MS2 I messed up grub. Finally I got 11.3 back to its old glory.

What would be the best procedure to create a backup image with all settings and permissions ...just in case ?

View 5 Replies View Related

OpenSUSE Install :: Get Root Privileges On User Account Without Using Root Login?

Feb 5, 2011

i am having problems with privileges i have created a new user with my name, but i cant get root privileges on it. i need the same privileges as the root profile.

View 9 Replies View Related

Red Hat / Fedora :: Root Line Passwd File Now Unable To Login As Root?

Jan 26, 2010

I edited the passwd file to modify the default shell for root from bash to tcshnow when I try to login to root it gives me the following error:"su: /bin/tcsh : No such file or directory"

View 3 Replies View Related

General :: Failed To Change Real Root To Fake Root Using Chroot?

Jun 28, 2011

I created a chroot jail in /SECURITY/Jail. But when I used the command 'sudo chroot /SECURITY/Jail' to enter the fake root, I got an error message likegroups: cannot find name for group ID 105groups: cannot find name for group ID 119.

View 1 Replies View Related

General :: Root Logins Are Not Allowed \ When Try To Login As Root, After Logging Out As User, It Does Not Allow?

Dec 2, 2010

i just installed linux mandriva 2009. i set password for root and created a user account. when i try to login as root, after logging out as user, it does not allow me and gives the error "root logins are not allowed". even it does not show the root account. if i try to go to root from konsole terminal using su root, it allows to enter as a root but when i try to start the GUI with startx it gives error.not sure what to do and why i can't see my account in GUI mode

View 5 Replies View Related







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