General :: Unable To Change System Time As Non-Root User

May 6, 2011

I need to edit the system time as a not-root user. I am carrying out the following actions in my program.

1. Read the User Id of the process. User_ID= getuid()
2. Printing Capabilities(Permitted, Efffective, Inheritable)of the process
3. Setting UID = 0, using setuid(0)
4. Calling the prctl(), function to keep capabilities
5.Switching the UID from root to User_ID of the process
6. What we have now is a process with root capabilities as a non root user
7. On printing Permitted, Effective, Inheritable capabilities, I get the following
--> Permitted = 0xfffffeff = Effective
Inheritable = 0x0; with UID = 1001;
8. I then try and set the system time with --> system("date -s 10:00");
9. I get an error: date: cannot set date: Operation not permitted
10. I am unable to understand as to why I cannot set the time even thought the capability bit CAP_SYS_TIME in the Permitted and Effective sets are SET.

View 3 Replies


ADVERTISEMENT

General :: Unable To Change The User And Root Permissions?

Mar 23, 2011

I was unable to change the permissions for root node and for other users also. WE have tried all the possibilities like chmod and chmod -R 777 filenem. But we are unable to change that.

View 4 Replies View Related

Software :: How To Modify System Time As Non Root User

Nov 18, 2010

I have developed an application, in C language, that should received the EPOCH time (6 bytes) at about every 30 min. What function should I use as a non root user to modify the System Time.? The idea is that the same application could update the System Time. I am using Ubuntu.

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

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

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

General :: Change From Root To Dif.user?

Sep 30, 2010

Im trying to run this program and they say I should not run it as root but as a diff user. how to change from root to dif.user. I am using linux CentOS 5.5. Is it a terminal command? How do i create a diff user and log in as it?

View 5 Replies View Related

General :: Change The Root Directory For A User?

Oct 5, 2010

For a user on a Linux host, I need to make everything inaccessible besides his home directory. I have heard that this is usually done by changing the root directory for the user (and setting it to the user's home directory), however I couldn't find the way to do it.

I thought about the chroot command, but it seems it just runs the specified command, considering the specified directory as the root directory. So it seems chroot is not what i need. So my question is: what is the command which changes the user's root directory?

View 7 Replies View Related

General :: Change User To Root It In Obuntu 10.04lts?

Jun 27, 2011

How to change user to root user in obuntu 10.04

View 6 Replies View Related

General :: Sum Of System And User Time Greater Or Smaller

Apr 7, 2011

1. How sum of system time and user time can be greater than real time ?
2. Even though my program is not waiting for any I/O the real time is smaller than system time as shown

root@chaitu:/home/chaitu/Desktop/Chk# time ./new
real0m0.001s
user0m0.000s
sys0m0.004s

View 4 Replies View Related

General :: Unable To Login As Root Or User

Jan 29, 2011

I am trying to someone get to their records on a CentOS 5 box and the username/passwords they have given me are not being recognized.

View 11 Replies View Related

General :: How To Change Hardware Time Of System

Jul 16, 2010

I need to change my hardware time and date as my hardware time don't right but I don't have network. I need the the commands and the steps.

View 5 Replies View Related

General :: How To Get Time From Power On System To Show User Login View

May 16, 2011

I want to get the time from power on system to showing user login view in Linux, how to do? Can it work only with shell?

View 2 Replies View Related

General :: Root User Account Number For System?

Feb 18, 2010

What is the user account number when you create a root user account for the system during the installation of any linux distribution? I'm not sure if its 0, 1, 10, or 100..

View 2 Replies View Related

General :: Give Total Access To The System To A User Other Than Root?

Mar 9, 2011

How can you give total access to the system to a user other than root?

* Make the user a member of the root group.
* Change the UID of the user to 0.
* Add the user to the /etc/sudoers file.

I think none of these are correct answers.

View 14 Replies View Related

General :: Local User Unable To Change Password?

Mar 22, 2011

I'm new to SUSE Linux 10 and I am having a problem with a local user account. Here is the scenario,Logged in successfully to a putty session as the "user" and try to change the password :

passwd "user"
(current) UNIX password:
passwd: Authentication failure

I am unable to change the password as the user but i am able to log into the server with the same user.

View 14 Replies View Related

General :: Ubuntu 10.04 - Change System Display User Name On Prompt?

Sep 22, 2011

Choose Menu System->Administration->Users and Groups

I am able to see my Users Settings as follows:

User name: mike

Then why I still see the following prompt line? code...

If my understanding is wrong, then how can I change it in this way?

View 1 Replies View Related

General :: Unable To Create System User?

Aug 18, 2009

lately i notice that when i add a new user withthe useradd and passwd command, and then try to login using this new account, am being prompted with a message,saying ' you cannot access /home/newuser. that the account doesnot have permission on his home directory. i have even tried go give the user(john) ownership over his home directory with the #chown -R john:john /home/john

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

Fedora :: Change Root User Name And Password

Mar 25, 2010

I am running Fedora 12 as Guest OS in VMware Player. I installed Fedora 12 by using a Prepackage VM . The root user name and p/w was supplied by the person who made this appliance. Is there way for me to change root user name and pw

View 2 Replies View Related

Fedora :: Change The Mouse Cursor For Root User?

Dec 17, 2010

Does anyone know how to change the mouse Cursor for the root user?

View 5 Replies View Related

Red Hat :: Unable To Boot RHEL 5.2 And Unable To Mount Root File System In Rescue Mode

Jan 28, 2010

Environment: A 32-bit kernel RHEL5.3 system running on a virtual machine. The root(/) filesystem is on an LV.

Issue: Unable to resize the FS after extending the root LV since it is mounted. After extending the LV, online resizing of the FS was not supported and the root filesystem could not be unmounted while it was in use. On rebooting, I got a kernel panic error. In runlevel 1, I couldn't run chroot, couldn't find the /etc/fstab, root FS could not be mounted, fsck did not run (tried block 31 for second copy of superblock using dd count=1 bs=4k skip=31 seek=1 if=/dev/sda2 of=/dev/sda2), couldn't find any rpm on installation media to install unix-utils rpm. On running commands in runlevel 1,

I got the following output.

View 5 Replies View Related

Slackware :: Root User Can Not Change The Ownership Of A Hard Drive?

Apr 22, 2010

I have Slackware 12.2 installed on my computer, as well as a Windows Xp. I have a hard drive named '/fat-d', which is formatted to be 'fat' and is normally used under XP. This drive can also be accessed under Slackware, both as root and the normal user.I can not write to the directory '/fat-d' when I am not root, it is normal since 'ls -l' shows that its owner is root and other users have no permission to write. The problem is that, when I tried (as root) to change the owner to the normal user:# chown [normal_user_name] /fat-dI got an error: chown: changing ownership of '/fat-d/':Operation not permittedBut how can the root have no permission to change the owner?

View 6 Replies View Related

Slackware :: Unable To Change Time In KDE4.4.1?

Mar 29, 2010

I am currently running KDE4.4.1 from AlienBob, and now with the change to BST I noticed that my clock hasn't changed. So I go to change it through SystemSettings and it shows a message thus:-

Quote: You are not allowed to save the configuration

This happens as both normal user and root. Googling around seems to suggest this error is tied to a Kauth/PolicuKit/polkit problem, which aren;t provided yet in Slackware as far as I am aware.

View 5 Replies View Related

General :: Change The Creation Time Of All A Folder's Files To The Current Time?

Jun 19, 2011

Under a Linux shell, how can I change the creation time of all a folder's files to the current time?

View 2 Replies View Related

General :: Change Time (Advanced Eastern Time) On Slackware 8.1?

Mar 24, 2010

I have a linux (Slackware) machine and the time/date is like, June 23rd 2003, 10:00am (It's 11 here) and I am not able to set the time to have it correct. I change the timezome to Montreal but the time is still wrong.

Is there a way to force it to sync with my domain controler or even another online NTP server?

View 1 Replies View Related

Fedora :: Unable To Login As Root Or Any Other User?

Jul 6, 2010

After upgrading FEdora 13, user ravi was added. Then after few days neel was added. Both of the users were already existing. So when attempting login to neel, we found that every file is owned by ravi. So we did$chown -R neel:neel But after that problem started and when we rebooted the machin, there were no list of users on login screen. (then I connected to that comp remotely, it worked, but somehow I was not able to switch to root) It says incorrect password (though I new it very well). So I went to maintenance mode and changed the root password, and rebooted. Still problem persists.Now I am not able to login as root (from anywhere, login screen , terminal, remote)No list of usernames on login screen ( but i can choose, other and type login-password)

View 5 Replies View Related

OpenSUSE :: Unable To Run Nautilus As A Root User?

May 1, 2010

I am not able to run nautilus as a root userA error message saying - Could not parse arguments. Cannot open displayHow do i find which version is my gnome??

View 3 Replies View Related

Red Hat / Fedora :: Unable To Login As Root User In F10?

Jan 14, 2010

I have just upgraded my laptop from F8 to F10, and I am unable to login to the system as root user.At login, it provides 2 options, one is the user I created and another called 'other'.On selecting 'other' and providing uid/passwd as 'root/<rootpassword>, it says "Unable to Authenticate User"!!However, when I tried to access my windows partition, it happily accepted the root password

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







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