General :: Run A Command Under Root As Another User?

Jan 8, 2010

So, i've a little question. I have a Linux Red Hat 5.1 System wich has a programm that needs to be started as a user -> usera .When i reboot the server, how can i make it possible to run a command in the shell as usera user?Someone told me, that this is not possible to make an autostart entry because this works only with the root account?!What i want its simple.- Command -> startprg need's to be started as user usera automatically after an automated reboot of the red hat linux

View 4 Replies


ADVERTISEMENT

General :: Root User Using Freshclam Command Cannot Write To Directory?

Jun 27, 2010

When I log on a root and attempt to issue the command Freshclam to upgrade the virus definitions it attempts or create a new file with a definition name. I get a message stating that the directory isnt writable. The user and group access rights are as follows:

USER = read, write, execute
Group = read, write, execute
All= read, execute.

The only way I can get around this is by applying a 777 which would be read, write and execute for all. Now, I have a group define with several user ids in it including Root.How do I connect the group with the directory/file so I dont have to apply a 777 access right to group users could issue the Freshclam command.

View 1 Replies View Related

General :: Disable - Non-root Shell Command To Find If A User Account Is Enabled Or Not?

Aug 10, 2011

Is there a non-root shell command that can tell me if a user's account is disabled or not? note that there is a fine distinction between LOCKING and DISABLED:

LOCKING is where you prepend ! or * or !! to the password field of the /etc/passwd file. On Linux systems that shadow the passwords, this marker flag may be placed in /etc/shadow instead of /etc/passwd. Password locking can be done (at a shell prompt) via password -l username (as root) to lock the account of username, and the use of the option -u will unlock it.

DISABLING an account is done by setting the expiration time of the user account to some point in the past. This can be done with chage -E 0 username, which sets the expiration date to 0 days after the Unix epoch. Setting it to -1 will disable the use of the expiration date.

The effect of locking to to prevent the login process from using a supplied password to hash correctly against the saved hash (by virtue of the fact that the pre-pended marker character(s) are not valid output character(s) for the hash, thus no possible input can ever be used to generate a hash that would match it). The effect of disabling is to prevent any process from using an account because the expiration date of the account has already passed.For my situation, the use of locking is not sufficient because a user might still be able to login, e.g. using ssh authentication tokens, and processes under that user can still spawn other processes. Thus, we have accounts that are enabled or disabled, not just locked. We already know how to disable and enable the account - it requires root access and the use of chage, as shown above.To repeat my question: is there a shell command which can be run without root privileges which can output the status of this account expiration info for a given user? this is intended for use on a Red Hat Enterprise 5.4 system.The output is being returned to a java process which can then parse the output as needed, or make use of the return code.

View 2 Replies View Related

General :: Use The Command "sudo Su Root" From User Besides Ubuntu?

Mar 17, 2011

Why can't you use the command "sudo su root" from a user besides Ubuntu?

View 2 Replies View Related

Debian :: Install Httperf Using The Following Command As Root User?

May 25, 2011

I am a Fedora user and have recently shifted to Debian.I tried to install httperf using the following command as root user:apt-get install httperfbut apt-get cannot locate the package:

root@D6-VM:/home/saad# apt-get install httperf
Reading package lists... Done
Building dependency tree

[code]....

View 3 Replies View Related

Ubuntu :: Get Root Script To Run A Command As Normal User?

Jun 8, 2010

Because I have a flaky wireless device, I occasionally get a hung connection and this script gets things running again in just a few seconds except obviously the boldfaced item, as it still tries to run in the root directory and gives errors:

Configuration file "/root/.kde/share/config/knetworkmanagerrc" not writable.
Please contact your system administrator.

So I am not sure how to get knetworkmanager to run as me, the user ubuntu in the /home/ubuntu directory

#!/bin/bash
service network-manager stop
sleep 1
killall -9 knetworkmanager

[code]....

View 1 Replies View Related

Ubuntu :: Cannot Use 'sudo' Command Either With Root Or User Passwords

Apr 19, 2010

I was wondering if someone had a logical reason and therefore complete, hopefully that makes total sense, for why when I install Ubuntu I cannot use the 'sudo' command either with root or user passwords. Even if I try to edit the permissions for sudoers, I still recieve an error message that says access is denied and so as the root user on my pc I don't understand why I can't put my name in the sudoers file or use the sudo command with the correct password.

View 9 Replies View Related

Ubuntu :: What The Diffent - Root User And Susdo In Command Line

Jan 4, 2010

Why we have to log in as root user some times while we can use sudo in command line ,is it diffrent , does sudo dont have all access and all permessions? i am really lost , i know little of alot of things in ubuntu ,but still missong alot of circles to make the complate picture.

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

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

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 :: Use This Command It Will Ask The User To Enter Year In Command?

Apr 4, 2011

i want in the website they ask to enter some input.Code:echo -e "<p>Please Enter Year : c</p> "read Yearif i use this command it will ask the user to enter year in command. but what i want is they ask the user to enter year in web browser.

View 14 Replies View Related

OpenSUSE :: None-root User Runs An "at"-command - Error Written Into Errorreport Of The AIX-machine

Jul 13, 2010

I use a SLES-machine (should be similar to opensuse I guess) and ad AIX-machine and got the following error:

Every time a none-root user runs an "at"-command on the linux machine, there is an error written into the errorreport of the AIX-machine. the error is the following: <82>Jul 12 22:32:09 linux-hostname atd[10754]: PAM audit_log_user_message() failed: Operation not permitted

I already checked the files /etc/at.deny (exists with users listed like "alias, backup, bin, ..." but not the user that causes the error-message) and /etc/at.allow (which does not exist but is not necessary, as far as I could read from the internet).

View 3 Replies View Related

General :: Not Able To Log In As A User Only As Root?

Jul 4, 2011

I installed arch on to my dell (8250) p4 and everything went great until my log in window came up I tried logging and it would not except my user name or password. I was able to get in on root and made sure the user name password was valid and it was! No matter what name / password I add with full access it will only see root

View 3 Replies View Related

General :: Changing User To Root?

Sep 17, 2010

I tried to make my account root by editing etc/group:

root:x:0:oneat
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:oneat
...

But it didn't succeed.What can I do more?

View 4 Replies View Related

General :: Non Root User Writing To USB

Sep 7, 2010

Basically I have a USB flash drive currently formatted under vfat. I can log in as root and the system automatically picks it up and automounts the drive successfully. What needs to happen is that a non-root user needs to be able write to this device while root has mounted this device. Due to other program constraints, I can not mount the device using another user so I have to do it with root.

View 9 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 :: How To Be A Root User In Ubuntu

Apr 1, 2010

Im doing a security based project in linux platform(ubuntu). When i try to modify some properties in ubuntu it is showing as "permission denied". I have only one password which i created when installing ubuntu.But using tat password i cant login as root. How to make login as a root user?

View 7 Replies View Related

General :: Make My GUI User A Root One?

Jan 23, 2011

I'm using Debian Squeeze, and I need to give to my gui user (the gnome user I think its called) root permission, I mean, I want to explore, read and write anything I want using my GUI user, how can I do it?

View 14 Replies View Related

General :: Setup Myself Up As Root User

Mar 31, 2010

when i type in su in the terminal it asks me for a pwd. I type in my user pwd and it denies me. So how do I set myself up as a root user?

View 6 Replies View Related

General :: Using Root Via SSH Screws FTP User Privs?

Mar 20, 2011

Whenever I create, move or copy into the httpdocs (host envio based on plesk installation)My FTP user privileges go wacky. For instance I could not delete, rename or upload anything to the directory I created as root in ssh.

View 1 Replies View Related

General :: Access As Root Staying In Another User?

Sep 20, 2010

i want to install a software in my linux machine staying in another user that i have created .It is asking for root access for some command to be execute during installation process.when I am trying to execute "sudo -s" its showing " is not in the sudoers file. This incident will be reported.".what next will i do.I am in my ubuntu machine.

View 3 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 :: Backing Up /var/lib/mysql As Non-root User?

Jan 4, 2011

I am using Ubuntu 10.04.1 LTS x64. I would like to backup my /var/lib/mysql directory as a non-root user.

I have been backing this up using cron as the root user, but another admin in my company insists that we create a separate user to perform this task for security reasons. I have created a user, created a group, added the user to the group, but still cannot access /var/lib/mysql/mysql directory as that user. I would like that user to have +rx access only.

View 5 Replies View Related

General :: Difference Between Sudo And Root User?

Feb 8, 2010

Can a sudo user do everything what a root user can do? I read sometimes expert say "You should run it as root rather than sudo user".

View 14 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 :: Cron Job Configuration - Log In As The Root User

Apr 15, 2010

I have done these steps. still its not working.

1. Log in as the root user.
2. I have created a file with name "reminder" in /root directory.
3. Create a /etc/cron.daily directory. Add a file called "taxrem", which reads a text file from home directory, so write a command in the "taxrem" : "cat ~/reminder"
4. Add command to /etc/crontab file. Based on the conditions I want, such as : 5 13 * * * root run-parts /etc/cron.daily

There is no entry in the cron.deny file. Still I have not get any response on that scheduled time.

View 1 Replies View Related

General :: How To Give Access (same As Root) To Other User

Apr 18, 2010

How give all access (same as root) to other user because i need to run some application s/w from other user login.

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







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