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
ADVERTISEMENT
Jun 25, 2010
When I installed the OS, I wasn't prompted to set the root password. Is this a bug, or did my install hose up?
View 4 Replies
View Related
May 15, 2010
Something weird happened lately (more probably I messed something up). I don't get prompted for root password anymore, for example while installing updates or software. It's not like the system remembers the password and does everything without asking for credentials, it simply doesn't ask and states that it can't do anything because of lack of privileges.
I use GNOME and can run YaST and Software Installation - I get asked for root password when running these. I can't set privileges when doing thing's outside those, like for example installing updates through that update icon on the bottom toolbar, or trying to install something by clicking on *.rpm.What might be the cause of the problem is that I was trying out KDE lately, and because I didn't like it I uninstalled it's packages. System asked what to do with dependencies and I chose to save most of them, but I might have uninstalled a bit too much.
View 9 Replies
View Related
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
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
Aug 30, 2010
not for the typical username and password that I use to log into my computer. It's actually prompting me, upon startup/reboot to have me insert my name and password, in what appears to be the command prompt. I am still a noob with Ubuntu and Linux in general, so I have no idea what I did to make this happen. It's not terrible and zomg if it doesn't get fixed I'll die, but it is slightly inconvenient to have to "sudo /etc/init.d/gdm start" every time I reboot my computer. Anyone know what I have to do to fix this?I would also like to apologize if this has been covered in another topic, but I could not find anything
View 6 Replies
View Related
Jun 4, 2010
I'm using Ubuntu 10.04 Lucid -- I upgraded from Ubuntu 9.10 which also had kubuntu desktop installed.After entering my username and password in the user login screen, I'm prompted for my key-ring password even though my key-ring password and my user login password are the same. How can I have key-ring password prompt automatically use the password entered at user login?
View 2 Replies
View Related
Feb 6, 2010
i'm new in ubuntu server..just installed it and i was prompted to enter my username and password..but theni got this prompt:administrator@ubuntuserver:
View 5 Replies
View Related
Dec 8, 2010
When I go to "Software Sources..." in the Software Center, the screen dims bringing my attention to the password prompt. I find this quite aesthetically pleasing and am immediately aware that I cannot continue until I enter my password. This is the only time that the screen dims in this fashion when asking for my admin password. Is this correct? If not (or maybe even if it is), should this be considered one for the papercut ninjas?
View 1 Replies
View Related
Jan 19, 2011
I have fresh install of SuSe11.2 64x My software updater applet tells me there are about 50 or so updates required. I check all and then click install, get prompted for admin password but then nothing happens except the software updater window closes and if I hover my mouse over the applet it tells me it is updating.
however hours later and nothing appears to have happened. If I click the updater applet all the selected updates still appear in the update window. I have added all the standard repos and have network connectivity. I'm a bit baffled here - it worked perfectly fine on my last 11.2 on the same machine.
View 3 Replies
View Related
Jan 12, 2011
Trying to figure out if there is a way to connect to a cifs share, and only being prompted for one password? ie using the following:
sudo mount -t cifs //goanna/neddy -o username=neddy,iocharset=utf8,file_mode=0777,dir_mode=0777 /mnt/neddy
prompts twice for a password (sudo & the share password). Is there anyway to "catch" the sudo password for the connect? (Long shot!
View 1 Replies
View Related
Jul 8, 2010
I installed IPlist earlier today on my main/admin account (which I only use for installing programs. I don't use this account daily.) and everything was fine. When I logged into my every day account and tried to load the program, it prompted me for my password. When I entered it, I got this message:Quote:Failed to run /usr/sbin/ipblock start_gui as user root.The underlying authorization mechanism (sudo)t allow you to run this program. Contact the system administrator.Does this mean I am not able to use this program on this account, or is there a way around it? I'm new to Ubuntu so forgive me if I'm asking the obvious. I looked around and couldn't find an answer. I really don't want to use my admin account for daily activities, but I also really want to be able to use IPlist
View 2 Replies
View Related
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
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
Feb 14, 2010
I have searched for days on this problem and no one seems to have the fix. Everyone else seems to go off on tangents.I have 3 computers. One runs XP pro, one runs Windows 7 Ultimate x64, and one runs openSUSE 11.2.The two windows machines can share files between each other with no problems.On suse I setup samba correctly. When I go to Computer -> Network on suse, I then go into Samba Shares. Then I see my workgroup name. I click to go in and I can see all 3 of my PC's listed here.When I click on my XP pro machine,am prompted for a user name and password. I put it in and I gain access perfectly.
When I click on my Windows 7 machine, I am prompted for a user name and password. I enter it in and it prompts me again for the user name and password. It will not let me in.I have changed all of the settings in 7, I have disabled the firewall, I have changed the security policies, I have changed the encryption strength.Simply Samba is nolaying well with Windows 7. I cannot believe that I am the only one with this problem
View 3 Replies
View Related
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
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
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
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
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
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
May 17, 2011
I have built a linux image based on kernel 2.6.32.10. The image boots up fine & at the login prompt when I enter the login Id - the
system doesnt prompt for password - instead throws an error message "Login incorrect".
mygway login: admin
Login incorrect
login: root
Login incorrect
From all the search I did, I narrowed this down to be a pam configuration issue. I checked that the /etc/securetty has an entry "/dev/ttyS0" to allow root to logon via serial console - so I ruled out this file to be a cause for that error. Few files that I am not entirely sure are as below:
1) /etc/pam.d/login
sudo cat login
#%PAM-1.0
[code]....
View 5 Replies
View Related
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
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
Mar 15, 2011
Also, how can I change between the two?
View 4 Replies
View Related
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
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
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
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
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