Ubuntu :: Set Gconf Values For Standard User From Root?

Jul 13, 2010

I have a script that runs lots and lots of root commands, copying files in /usr/...stuff like that, then i want to switch users back to the original user and run some gconf tweaks, I need to update a series of gconf values for a user after copying all the root files, but I noticed once your in root, any gconf values you change, change roots information, not the user who started the script useing sudo.

So i was wondering how you would run a script as root, then after your done with all the root commands, "un-root" to the current user who started the script and run the gconf edits:

I put together this so far. It a script that you run, it detects if it was started as root and if not it asks for root password and re-spawns its self exiting out the first instance, then the script runs, switches to the original user after all files are copyed over and starts to run the Military Time custom format update.

Code:
OUSER="`whoami`"
if [ "$(id -u)" != "0" ]; then
sudo -K
sudo bash $0

[Code]....

View 8 Replies


ADVERTISEMENT

Networking :: Privileges Are Required To Change Gconf System Values

Jan 3, 2011

im on ubuntu, and i was trying to change the settings under System->preference->network proxy

When i click apply system wide, it asks me for my root password wich i provide and then it asks me for this other password, with this message: Privileges are required to change gconf system values. What is this? is there a way around it?

View 1 Replies View Related

Red Hat :: Cannot Change Root Password (let Alone Standard User's Password)?

Jan 6, 2009

At the RHEL prompt, I entered the standard user's username/password combo. Linux displays a message box stating:"Your account has expired; please contact your system administrator."Next, I entered "root" in the username field and entered the root password (which expired also--keep in mind that passwords are set to expire after x days). Linux displays a message box stating:"You are required to change your password immediately (password aged)."When prompted to "Enter current UNIX password", I entered the new password (was that the right thing to do?); Linux displays a message box stating:"The change of the authentication token failed. Please try again later or contact the system administrator."I rebooted the system and got into command line mode; somehow I logged in as "root" (don't know exactly how, but needed to change the password there). At the "#" prompt, I type "passwd root"; Linux displays the message "Changing password for user root", followed by the message "passwd: Authentication information cannot be recovered.

View 4 Replies View Related

Programming :: Python Gconf Not Working When Ran As Root?

Jan 23, 2010

This is the case. I run openSUSE 11.2 with GNOME. I want my desktop wallpaper to automatically cycle on a fixed interval. So I found this script (change-background.py), edited it to match my needs, and put it in my home bin directory. The script runs fine.

change-background.py

Code:
#!/usr/bin/env python
#
# change-background.py
#
#

[Code]....

View 6 Replies View Related

Software :: Change A Process Running In Root-user To Non-root User ?

Oct 28, 2009

Is It possible to change a process running in root-user to non-root-user by setting suid / uid / euid / gid etc... I so please instruct how, when and wat to set in order to change a process running in root-user to non-root user

View 4 Replies View Related

Fedora :: Add Permissions To Run Under A Standard User?

Mar 11, 2010

Been running 64 bit fedora for a few weeks now and all is dandy. I have been having problems using Wine & Winetricks to install extra components. Wine seems to crash when ever i try to run something as a standard user. Run as root and the problem doesnt happen. Do i need to add some permissions to run under a standard user? With Winetricks, when i go to install any componet, after extracting and installing all files i get:

'Executing early_wine regedit c:winetrickstmpoverride-dll.reg
regedit: File not found "c:winetrickstmpoverride-dll.reg" (2)
Note: command 'early_wine regedit c:winetrickstmpoverride-dll.reg' returned status 1. Aborting.'

Now i have searched everywhere for these .reg files that are not found, havent found anywhere that can tell me where to retrieve these files.

View 2 Replies View Related

General :: What Are Standard Root Password Control Applications

Nov 29, 2010

I came across term as "standard root password control application"

I have no imformation over what are such applications how to implement them?

It was also suggested to audit root login .How would i go about it?

View 2 Replies View Related

Ubuntu Networking :: Admin Profile Can Access Websites While Standard User Cannot

Apr 20, 2011

First off, since this seems like a networking issue I put it here, but if it should be somewhere else, the powers that be should definitely move it over.

I'm using Ubuntu 10.10 on Dell Presario M2000 I have made sure that all updates have been done.

As the subject states, the admin account (mine which I'm posting to the forum with right now) can access the internet and see webpages. The user account on this laptop (my underaged sister who my parents don't want full access to the computer) will not access any webpages, it just continually looks like its loading.

I have made sure the wireless card drivers are installed and activated.

Also, I ran iwconfig and ifconfig and here are their results

p { margin-bottom: 0.08in; } Results of iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:"myqwest4137"

[Code]....

These were both run from the user account. At this point it looks like its connecting to the internet through the wireless card as I was also able to run the update manager through the user account and have it download the updates (after putting in my admin password of course).

View 2 Replies View Related

General :: Security Dangers Of Executing Malignant Code As A Standard User?

Jan 28, 2011

Slipping some (non-root) user a piece of malignant code that he or she executes might be considered as one of the highest security breaches possible. (The only higher I can see is actually accessing the root user) What can an attacker effectively do when he/she gets a standard, (let's say a normal Ubuntu user) to execute code? Where would an attacker go from there? What would that piece of code do?

Let's say that the user is not stupid enough to be lured into entering the root/sudo password into a form/program she doesn't know. Only software from trusted sources is installed. The way I see it there is not really much one could do, is there?

Addition: I partially ask this because I am thinking of granting some people shell (non-root) access to my server. They should be able to have normal access to programs. I want them to be able to compile programs with gcc. So there will definitely be arbitrary code run in user-space...

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

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 :: 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

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

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

OpenSUSE Network :: Root User Has Access To Remote Folders/files Of Any User?

Jan 21, 2010

Prelude: OpenSUSE 11.2 (2.6.31.8-0.1-desktop), installed Novell client 2.0 SP2 (novell-client-2.0-sp2-sle11-i586.iso).

I found that if any usual user is logged into a NDS-tree, then _local_ root has full access to user's network shares, including the user's home directory located on remote Netware-server. Is it by design or
have I missed something? Nevertheless in windows local admin has no access to network resources mounted of any other user. If you runas shell (as admin) then admin in principle can't "see" network shares which were mounted (connected) by other users - they are accessible ("visible") per session.

View 3 Replies View Related

General :: Change Password For Newly Created User And Root User Using Graphical?

Jan 15, 2010

I am using mint 8 for a 2 weeks, I am noob to linux but I like Mint than any other linux distro which is great alternative to windows. I have a problem regarding password reseting.

1. My laptop automatically get logged in without asking user name and password.

2. I tried to change password for newly created user and root user using graphical way but it does not work.

2. I can perform administrator task using only OEM user which is default inbuilt user of mint.

How can make my laptop to ask password when mint get booted? How to change password for other users?

View 1 Replies View Related

General :: Get The Values For The User Time And System Time For A Process?

Aug 4, 2009

get the values for the user time and system time for a process.i have tried getrusage to get values of ru_utime and ru_stimebut these don't seem to be correct

View 3 Replies View Related

Ubuntu :: Root User Log-in For 9.10?

May 27, 2010

Does Gnome display manager need reconfiguring to allow root user log-in?

Older versions had gdm.conf to re-configure; looks like 9.10 is different here...

View 3 Replies View Related

Ubuntu :: Non-root User Can't Log Into X?

Jan 22, 2010

After an upgrade from 9.04 to 9.10, my only non-root user on the system can't log in to X. Root can log in just fine. When I type my password into GDM, it attempts to start X but goes right back to GDM without starting X successfully or giving me any error messages. I'm using nvidia graphics drivers and dual monitors, and those work just fine in root's X session. How can I fix it so my non-root user can log in again?

View 1 Replies View Related

Ubuntu :: Log As A Other User But Not As A Root?

Feb 16, 2010

In the installation I had given a user name and pass word.Now I can log as a other user but not as a root.I want to log as root.Is there any way to log as root.

View 5 Replies View Related

Ubuntu :: 9.1 - System Did Not Put Root User

Jan 5, 2010

I started to use Ubuntu 9.1 today. It's the first version of linux I'm using. So my problem is that I always got a message in terminal, that says "are you root?", when I try to do something with apt-get. Well i tried to install a root, but it didn't work. One thing I almost forgot. Root is the Superuser that should be put on, when I installed the current version of ubuntu right? I don't understand how could it happen that the system didn't put the root on.

View 2 Replies View Related

Ubuntu :: Shutdown From CLI As Non Root User

Apr 1, 2010

It seems little weird that I can shutdown my system (as non root user) from GUI but now from command line. I understand this may have to do with old unix tradition. I am now writing a script to shutdown systems after a certain period of inactivity. How do i shutdown system as non root users and without using sudo? Also the shutdown option in GUI must be calling a command line internally. Which is that option? Can I use that to shutdown system as non root user?

View 1 Replies View Related

Ubuntu :: Change Root User Name?

May 17, 2010

I often put together complete computers from spare parts. When I do, I put Linux on them and put my name as the root user. However, I don't build these to keep them for myself.....I usually end up giving them away to someone who needs one and can't afford to buy one. What I would like to do before givi9ng them away is to change the root user name to their name. How can I do that? CAN I do that?

View 9 Replies View Related

Ubuntu :: How To Login As Root User

May 26, 2010

how i know am in root user or another user? how to login as root user? sudo passwd root when i typed in termninal am getting this error pa1 is not in the sudoers file.

View 2 Replies View Related

Ubuntu :: Become A Root User Without Using Sudo?

Nov 6, 2010

How to become a root user without using sudo?So,that i can become super user to edit configuration files in etc directory.

View 1 Replies View Related

Ubuntu :: Run Something As Simple User While Being Root?

Dec 18, 2010

Run something as simple user while being root!?

View 7 Replies View Related

Ubuntu :: Turn Off Root User?

Jan 26, 2011

is any way to turn off that I need to type in my password every time I come back to my computer (after a while it the screen turn black and I need to log in again)?

View 2 Replies View Related

Ubuntu :: Can't Log Into Root User Account

Feb 5, 2011

I was changing my GUI settings in XFCE in my root user account on Xubuntu when suddenly I was logged out and the computer shut down.

(I have done this before with no such trouble...)

Now I can't log into my root account all I get is a blank screen for a few seconds then I'm back at the log-in screen, the other account works fine.

(This is on my Xubuntu 10.10 laptop BTW...)

View 5 Replies View Related

Ubuntu Security :: Can Ssh Into Root But Not User

Apr 22, 2011

Having trouble adding a regular user with ssh access on Hardy 8.04. I can ssh into root, but not into the newly created regular user with the same ~/.ssh/authorized_keys

Code:

sshd_config has:
AllowGroups sshlogin
AllowUsers user root

[code]....

what could be preventing ssh login to ~user? And yes I would like to disable root ssh access, but it would be nice to be able to ssh into user first

View 4 Replies View Related

Ubuntu :: Creating Non Root User?

Sep 1, 2011

how do i create non root user( that is multiple accounts as in windows) in ubuntu..

View 2 Replies View Related







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