Ubuntu :: "Continuous" Script With Root Privileges During Boot/login?

Dec 8, 2010

I've done a very simple shell script to shutdown my computer via web browser. This can be useful, because I can shut it down via my iPhone when i'm not home and a thunder storm starts. It works perfectly when I execute it after i've logged in. But I want it to be a "native" process. I want it to be executed during boot or login and it must have sudo privileges in order to halt the PC. The problem is this Script "never ends": or it receives the sign to shutdown or it starts itself again after sleeping 60 seconds. Take a look:

#!/bin/sh
# First it tries to download a "shutdown.txt" file, that is created via PHP when I send the command.
wget http://www.mydomain.com/shutdown.txt

[code]....

#If he finds it, he accesses the server where the shutdown.txt is located via FTP, delete it, delete the shutdown.txt that was downloaded, and then shuts the PC down

else
ftp -n ftp.mydomain.com <<END_SCRIPT
quote USER xxxxxxx
quote PASS xxxxxx

[code]....

if I put this script to run during the boot process my PC will never boot! It will shutdown, or try again. make my script work without having to manually execute it every time a use the PC.

View 5 Replies


ADVERTISEMENT

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

Ubuntu :: Run Script At Login That Requires Root Privileges?

Aug 3, 2010

I have the script below that I want to run when my sister logs into her account. But the problem is that `ifconfig up` or `ifconfig down` requires root privileges. How do I initiate the program when she logs in and have root the the runner of the program.

Code:

#!/bin/bash
while true
do
elevenpm=`date +%s --date "2300"`

[code]....

View 4 Replies View Related

Ubuntu :: Added A Program That Requires Login To Have Root Privileges?

Jul 6, 2010

I'm using ubuntu 9.04 at the moment and have added a program that requires my login to have root privileges, how do i set these up

View 1 Replies View Related

Security :: Secure FTP - Root Privileges After Logging In Form A Macintosh And Could Browse The Root Directory

Apr 12, 2010

I run ProFTPd with TLS authentication on my Debian Lenny server. My problem is that despite of the fact that my users connect chrooted, one of my friends had root privileges after logging in form a Macintosh and could browse the root directory, too.

View 1 Replies View Related

Ubuntu :: USB Needing Root Privileges?

Apr 4, 2010

We formatted a USB stick to EXT3 for use on a linux formatted device.Now, when we try and transfer files from this ubuntu laptop onto the USB stick, it says permission denied.

View 4 Replies View Related

Ubuntu :: Shutdown PC Without Root Privileges?

Sep 6, 2010

All of as now the add-to-panel item that via it you can shutdown the PC without the need of typing any password to gain root privileges.

How is this possible? I know that fro default the login screen is run by root but how do this app sends the signal to the login-screen to shutdown?
I mean, this app is run without root privileges by me, the simple user, and when clicked the PC shutdowns via a signal from this app to the login screen....
How can I call this signal to an app of mine?

View 9 Replies View Related

Ubuntu :: Give Only Certain Root Privileges?

May 29, 2009

We have Ubuntu 8.0.4. We'd like to give this one user the ability to reboot the server but no other root privileges. I'm assuming this can be done using sudo. What file and what change do I need to make to it?

View 3 Replies View Related

Ubuntu :: Floppy Drive Privileges Set For Root?

Jun 1, 2010

I just installed this floppy drive in my computer and I can view files on floppy disks but I can not add files to a disk, formating will not work. All the privileges and ownership are set as root and I can not change them. (But I physically own it) Here is what the privileges are set for:

View 1 Replies View Related

Ubuntu Installation :: Get Root Privileges In The Terminal?

Jun 20, 2010

changing the su password so i can install things. I was told to replace it with sudo because it is locked. I did this but i didnt work, it said my permissions are denied. How do i get root privileges in the terminal?

View 1 Replies View Related

Ubuntu :: Lost Root Privileges In Phpmyadmin?

Oct 30, 2010

Ive done something, Im not sure what...... I was trying to backup my mysql DB so I can reformat that server and install different server OS, then reinstall mysql and restore the DB... Well, somewhere in this mess I did something and now I get DBI connect failed : Access denied for user ''@'localhost' to database 'mysql'CONSTANTLY! I cant see any of my SQL DB's anymore... I just need to get the privileges back that Im missing, back up these DB's and get on with this already!

View 5 Replies View Related

Fedora :: Get Root Privileges In Www Directory?

Sep 21, 2010

Tell me how I can I login as root?I want to get root privileges in www directory because I have a web server and I want to put there my site and I can not do that

View 6 Replies View Related

Red Hat / Fedora :: FTP Transfer - No Root Privileges

Jan 29, 2009

I am basically on a Fedora 8 but I have some of my files on telnet machine, to which I can log on. There I don't have root privileges though. How can I transfer files from that machine to my machine, using ftp or some other mechanism?

View 2 Replies View Related

General :: What Are The Privileges Of Admin Vs. Root.

Mar 15, 2011

Also, how can I change between the two?

View 4 Replies View Related

Ubuntu :: Way To Grant 'root' Privileges To User Account?

Jan 2, 2010

Is there a way to grant 'root' privileges to my user account? My account name ... I'll call it 'masterskop' as it is my forum name here, but not on my computer.Would it look like this in the sudoers' file?My purpose is to get access to all the folders and files in the 'File System'. The root and lost+found folders have 'Xs' on them...No access! And for example, under properties of the 'var' folder it states that 'you are not the owner, so you cannot change these permissions.' How can I get access to all of it everytime I login as the main user of my computer? I do not have anyone else using this computer.I did edit this file and used my real user name ... logged out and logged back in and still I do not have access/edit these folders and files.

View 4 Replies View Related

Ubuntu :: USB Automounts With Root Privileges As /media/usb0?

Oct 25, 2010

not sure if this is a silly issue or what. I recently upgraded to 10.10. When I insert my usb device, it automounts as /media/usb0, with root privileges. I have to manually unmount it, and afterwards if I select the "mount (drivename)" usb stick from Places it will automount as /media/(devicename) with proper

View 2 Replies View Related

Ubuntu :: Run Scripts With Root Privileges Without Being Prompted For A Password?

Dec 22, 2010

I want to run to scripts with root privileges without being prompted for a password.
This is my sudoers

Code:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.

[Code].....

Every time I try to run SSID.sh it prompts me for the goddamn root password.

View 8 Replies View Related

Ubuntu :: Run A Script That Needs Root Privileges Without Typing In The Password?

Mar 25, 2011

I'm trying to run a script that needs root privileges without typing in the password. I want to copy a file from my documents folder into /etc/X11 to overwrite my xorg.conf. I do this because I will have my computer switch from my monitors to my TV when I watch a movie. But I'd like to be able to make it a clickable icon so I don't have to type in cp /... /etc/...

This is my "script"

Code:

sudo cp /home/nertskull/Documents/xorg.conf_TV /etc/X11/xorg.conf

Then I read a lot of places that said to add this to the sudoers file (sudo visudo)

Code:

nertskull ALL = NOPASSWD: /home/nertskull/Documents/switch_TV.sh

I've done all that, and I still get asked for my password when I run that file.

nertskull ALL = ...
%nertskull ALL = ...
%users ALL = ...
%admin ALL = ...

I'm sure it's something simple I'm overlooking, but I've read 5 different threads on this, and I can't find anything they did that I'm not doing. Also, here is my sudoers file, because I know location within the file matters. But what I read said I should be putting my stuff at the end.

Code:

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.

[code]....

View 6 Replies View Related

Ubuntu Security :: Any Way To Change Password For Root Privileges?

Jul 10, 2011

I've been using Ubuntu for like a year now. Whenever I want root privileges I just type sudo and enter my User password. I wanna know if there's a way to change this, in a way that My User password is: "ABC" and the password needed to have root privileges is: "ABC123". I have no problem using the terminal, I actually prefer it to any GUI, it just seems easier to me.

View 3 Replies View Related

Ubuntu :: Give The Live User Root Privileges?

Feb 26, 2011

i am trying to recover some files on a partition through the ubuntu live cd (they are hidden files and i can't find anything else that would work) and it said i needed root privaleges in order to copy them. is this possible and how do i do it

View 8 Replies View Related

Debian :: How To Sign In Or Install For Root Privileges

Feb 28, 2015

I used Zorin, Ubuntu, and Kubuntu. Even though Kubuntu was my favorite because of the KDE platform, it still didn't have what I was looking for. With Debian, the KDE platform works great, it uses KDM instead of LightDM, (you can do more with that), and the choices of software for setting it up as a server is great. The problem I having right now is with the root privileges. With the other Debian based systems I used, root privileges was not a problem. When I signed in, it was with my user name and my root password.

Every time I did updates or installed software, it ask me for authentication which is my root password. And if I had to use su or sudo commands in the terminal it ask for my password. I had no problem with that. I'm just as big with security as any Unix based system users. And Linux has that. That's one of the big reasons I left Microsoft Windows for Linux. There was times when I had to have full root privileges for just a short time, and my favorite command was sudo nautilus. This was perfect.

For example, sometimes I had to get in to the opt folder for a brief moment to past a web page in it. Opt is a root folder. It can be opened with out a root privilege, but you just can't past files to it. Sudo nautilus was perfect for this because it is a temporary root privilege. Close the terminal and the root privilege session ends. This is great. You don't want root privileges all the time you're log in. That can be dangerous because it's a high security risk.

With Debian, I have not been able to get any root privileges. And without root privileges, I can't load much needed software, can't access my second hard drive, matter of fact, the second hard drive doesn't even show up. I can't really do much of anything. Is there something I can do when I am installing Debian to fix this or how do I get the root privileges I need?

View 3 Replies View Related

Fedora :: Open A Folder With Root Privileges?

Aug 17, 2011

How does one open a folder with root privileges? I am trying to extract a screenlet into a screenlet folder but it says permission denied. How do i change that?

View 4 Replies View Related

General :: Create The User With Root Privileges?

Jul 4, 2010

I want to create a user who has all the privileges that root user has.I know how to create a user but i don't know how to grant root privileges to him.

View 10 Replies View Related

General :: Add User With Root Privileges And SSH Access

Nov 2, 2010

How to add user with root privileges and SSH access.

View 6 Replies View Related

General :: Create A User Without Root Privileges?

Apr 9, 2011

I create a user in CentOS 5.5 for using with my email account.

useradd ralf
passwd ralf

use "ralf user" only for my email account. How can I remove others privileges/permissions? Also, I want to use "ralf user" without root privileges/permissions.

View 4 Replies View Related

Software :: Creating A Tmpfs Without Root Privileges?

Mar 14, 2010

I've grown rather fond lately of creating tmpfs here and there to speed up various activities. (I think it is awesome that RAM can be mounted to a directory!) The downside though, is that this requires root privileges. I don't really like this because then I either have to go root each time I want a tmpfs, or I have to add a new line to fstab each time I want a tmpfs in some new, odd place. (This becomes doubly weird when the odd place is somewhere like inside my personal home directory.) Is there some other utility out there that can mount RAM as a filesystem, but allow mounting to be done without root privileges? It seems like this shouldn't be an issue, since a normal user has the ability to create and manipulate directories as well as borrow as much RAM as he wants.

View 2 Replies View Related

Ubuntu Servers :: Root Has No Privileges To Create Database In Phpmyadmin?

Apr 11, 2010

I logged in phpmyadmin as root (with password that I just created in terminal), old databases are there but I have no privileges to create a new one.

View 1 Replies View Related

Ubuntu :: Getting Root Privileges To Change Files In Own Home Folder?

Jul 16, 2011

I'm running ubuntu 64-bit server edition so ill have to use the command line for this. i want to create or change a file in my own home folder, i have to do it as sudo, otherwise i get an error message saying "permission denied".

View 4 Replies View Related

Debian :: Can't Change Permissions For The HDD Without Login On Root And Root Login Are Not Allowed?

Jun 16, 2010

How to enable Root login...i cant copy or move something on the HDD...I have administrator rights and password for root but i cant change permissions for the HDD without login on root and root login are not allowed .

View 10 Replies View Related

Ubuntu :: Restoring Root Privileges (admin Group) In Lucid Lynx?

May 1, 2010

After freshly installing Lucid Lynx and tinkering for some time to get everything just how I like it, I managed to somehow remove myself and all other users from all groups. Now, obviously, I've restarted and I don't have root privileges as I am no longer a member of admin group. So I am somewhat stuck. I've looked at this page: [URL]. But annoyingly, there is no grub menu appearing on boot up (unlike previous Ubuntu versions). So I'm appealing for your help to either:

a) Show me how I can bring up the grub menu so I can access ubuntu in safe mode

b) Show me another way of accessing the system with root privileges. (Would using chroot from the Live CD work? I just thought of that now so I'll try it).

View 3 Replies View Related







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