General :: Set Umask For Process Running Root User?

Nov 23, 2009

I am trying to set the umask for a process(orkaudio) which is running as the root user.This program creates dir and files and I need the umask to be 022. I have edited my /etc/bashrc -- and when i type in umask i get 0022 --- Not sure how to go about getting this resolved...

View 1 Replies


ADVERTISEMENT

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 :: Kill Process Started With Different User Without Being Root / Sudoer?

May 3, 2010

I need to kill a process which has been started by user2 if I am user1 without being sudoers or using root.Do you know if there is a way of setting that when launching the process? Such as a list of users allowed to kill the process?

View 7 Replies View Related

General :: Detailed Description Of The Login Process For Both Root And Normal User?

May 19, 2010

i am looking for a detailed description of the login process for both root and normal user , also locally and remotely.i read some sentences that the files .bashrc and bash_profile are needed for this process. But that was very concise.

View 9 Replies View Related

General :: Find Out How Much Time An Already Running Process Is Spending In User And Kernel Spac?

Jun 8, 2011

I am currently struggling with one of my tasks.I was asked to find a way how to determine how much time an _already running_ process is spending in user and kernel space.E.G. <some tool> <pid>[Control] + [c]<pid> spent 12.1 seconds in user and 1.52 seconds in kernel space.Does something like this exist? Basically I guess I am looking for something similar to time, except that the process is already running.So..a) Is there a tool which fulfills this task?b) Is there a way to write your own software which does the job? Is it even possible to code something I am looking for?I recently found strace -c -p <pid>, but well, this is not exactly what I was looking for.

View 3 Replies View Related

General :: Set Umask To 0000 For A Special User?

Jan 25, 2010

Please see below:

vim ~/.bashrc
umask=0000(bottom line)
source ~/.bashrc

But when I relogin, default umask was still 0022. How could I do ?

View 1 Replies View Related

General :: Umask And Permissions - Has Umask 007 Bad Side Effects?

Mar 16, 2011

My Debian system has by default umask permissions of 0022, which I never liked. One user can read all the files of another seems very insecure to me.

I am planing to set it to 007, so that user and group have rw but all others have none.

Are there any side effects to that? I have noticed from a trial I did where I was changing permissions on the filesystem that some system stuff in the OS does not work anymore, if "others" have no read permission anymore, so that is why I am asking.

And why are chmod / umask permissions sometimes stated as 4 digits? What is this "all" group in the end? Isn't that already covered by "others"?

View 1 Replies View Related

General :: Setting User Mountpoint Permissions In Fstab Without Uid / Umask

Jan 30, 2010

I'm struggling to understand an aspect of mounting and mountpoints with /etc/fstab. There is a large number of sites and threads that make recommendations using things like uid, gid, umask, and other options. These methods, however, which I've used, are file-system specific, useful only for filesystems such as (V)FAT and NTFS that allow them.My current situation is that I am mounting partition /dev/sdb5 in, let's call it /media/myMount. My goals:Mount this partition automatically upon boot using /etc/fstab...The partition should be fully accessible only to a specific user or group.What I've done is create the mount point in /media:

If user michapma were to carry out the mount, I believe it would work; however, I want the mount to happen automatically during boot. So, how can I achieve my user (or group) permission goals for this and any other such partitions using fstab?The manpage for mount has been helpful, but after reading many tutorials and forum threads, the only way I know how to do it is to have the user do the mounting or rely on the file-system specific options.

View 2 Replies View Related

Ubuntu :: What Running Process As Root Actually Means

Apr 8, 2010

I just installed Wine (1.1.3* dev release) and installed Notepad++ (OSS) and Net Meter (Freeware, the latest beta is actually OSS too). I also intend to install a few other things later. The only failure so far is the latest WinSCP So it made me wonder about what running a process/software as "root" actually means. When I use U.S.C or 'apt-get install' to install software on my computer, and type my password, it displays that keyring icon on my systray.

Does this mean I am root at that moment? And how about running wine, the wine processes, and any windows *.exe I'm installing and running? I basically am afraid that I am running all the wine-related stuff as root, even though there is no indication that I at least have elevated privileges. What is/are the worst-case scenario(s) about wine?

View 9 Replies View Related

Ubuntu :: Running A Process Indefinitely As An User?

Feb 27, 2011

i am using Ubuntu 10.04.1 LTS. i only ever contact my ubuntu machine through SSH. everytime i login, i do:

~/downloads/.dropbox-dist/dropboxd &

this launches the dropbox process and all is great. except when i log back into the ubuntu machine via ssh after a few hours, the process no longer exists. how can i get the process to run indefinitely?

View 4 Replies View Related

Debian :: Kill An Process Running From An Folder And With User Parameter?

Dec 4, 2010

i googled around and finally stumbled over this forum. I've been wondering, how would i kill an process running from an folder and with user parameter? I usually type this into the ssh console: pkill -9 < process > -U < username >

But i want users be able to run it multiple times, and killing only an specific process and not every single one.

View 4 Replies View Related

Ubuntu Servers :: Access Denied For User 'root'@'localhost' / Set The Password During Installation Process?

Dec 14, 2010

I have installed mysql-server, but i have no access. I have set the password during installation process.

Used command:
mysql -u root -p
error message:

[code]....

View 8 Replies View Related

OpenSUSE Install :: Where To Set Umask For User

Oct 27, 2010

after installing openSuSE 11.3 i was thinking a bit about security. I read, it's a good idea to set umask of users to 077 . I'm unsure now, where to do this, cause there are different locations offered in the web:

/etc/login.defs
$HOME/.profile
/etc/profile - umask would be valid for root too.

And for my understanding:

- Is it wise to set root to umask 077 too or could this lead to negative effects on my system.

- Is it even senseless to umask the normal user to 077 if there is just one desktop-user using my system (myself ).

View 9 Replies View Related

Software :: Change Umask Of User ?

Jan 7, 2010

I have a daemon running as a local user account on my red hat box. The problem is the daemon creates directories using a umask of 022. I need group write access to the directories the daemon is creating. I need the daemon to use a umask of 002. I've edited the daemons startup script in /etc/init.d I've changed the umask in the /etc/init.d/functions file. I've added the line "umask 002" in the user's ~/.bashrc and ~/.bash_profile files. I've also setup /etc/bashrc to assign all users a 002 umask (just for kicks)

View 3 Replies View Related

Fedora :: Sudo Running As Root Instead Of Specified User?

Jan 25, 2010

I have a weird question about the sudoers file. Currently, I am running "Red Hat Enterprise Linux ES release 4 (Nahant Update 8)".

I edited the sudoers file (via visudo) and added the following:

User_Alias RPTS2 = vtmtest

RPTS2 xxxxx = (jboss) /oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh

The user (vtmtest) issues the following command

sudo /oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh

and gets this message:

user vtmtest is not allowed to execute '/oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh' as root on xxxxx

When I look at the log, I see the following:

Jan 25 14:17:57 xxxxx sudo: vtmtest : command not allowed ; TTY=pts/12 ; PWD=/export/home/vtmtest ; USER=root ; COMMAND=/oracle/app/oracle/apps/rptsd/deploy-jboss/deploy_rpts_jboss.sh

1. Why does sudo try to run as the root user, when I have specified in the command to run as jboss?

2. Do I need to specify anything else so that this command can run as the "jboss" user and not "root"?

View 2 Replies View Related

Slackware :: Running Root Commands As User?

Nov 7, 2009

After a few hours work I have managed to set up pptd so that my daughter can log into her account at Imperial College. My problem now is that I need to have a script that she can run if she wants to log in. She will have to invoke a couple of root commands and I do not want to give her the root password What she needs to do to set up networking is:

Quote:

pppd call imperial dump debug logfd 2 nodetach require-mppe
/sbin/ip route add default dev ppp0

How can I enable things so that she can run this script as user?

View 12 Replies View Related

OpenSUSE :: Warning: Running BOINC As Root User

Apr 19, 2010

I've installed BOINC for first time (from suse repos). I'm worried about running BOINC as root. How can this be avoided? I'd first like to exhaust all options with the official opensuse repo version of BOINC. If I am unsuccessful, then I'll try the version from Berkeley website.

View 13 Replies View Related

Software :: Sudo Is Not Switching To Root, Running As Same User Instead?

May 15, 2011

Take a simple requires-root option, such as:

Code:
[Leo@chessman ~]$ cat /etc/shadow
cat: /etc/shadow: Permission denied

[code]...

View 5 Replies View Related

Slackware :: Running Set Less As User Reveals Root Password?

Mar 26, 2011

When I run set | less as a user, my root password is displayed in the last line of rules.

Code:
_=su
*******<-----Root Password.

[code]...

View 7 Replies View Related

Ubuntu :: Change Umask On Per User / Group Basis?

Mar 25, 2011

I've decided to move this question into a new thread since i haven't received an answer for 3 days. This question was originaly posted here: [URL]... I've already searched in google, however i wasn't able to find an answer that solves my problem... How can i change the umask on a per user basis so that each user can have its own umask to fit his needs? For example: I have four accounts on my system ex.

admin1 : admin,
admin2 : admin,
manager : stuff,
user : user,

-So now I want everything from the admin group to be by default set to 002 (so that every user that is in the admins group can have a full share (-rwx rwx r--) of everything that is created by the admins).

-Then the similar to the above managers shoud have 022 umask.

-And each of the regular users should have 002 or 022 or 077 it is up to the users choice.

I hope that i have provided enough info thorough the example.

View 4 Replies View Related

General :: Umask And /usr/bin/umask ?

Apr 25, 2011

Not sure if this is the right place to ask this question. In Solaris we have umask (shell builtin) and /usr/bin/umask. However I could not find /usr/bin/umask in Linux.

I want to know the difference between both and how can we achieve the functionality of /usr/bin/umask in Linux as its not there...

View 6 Replies View Related

OpenSUSE Install :: Running Script As Root At User Login?

Feb 19, 2010

I need to run a script (which requires root privileges) on login per-user only. I want this to runtomatically so I'll add an appropriate line to .profile.A couple of questions:1 The easiest way I can think of to run the script as root is to setuid, but I know there are security concerns. Is there a better way

View 6 Replies View Related

Fedora :: Root User And Got Magicjack Working Under A Winxp Running On A Vbox

May 22, 2011

I finally got magicjack working under a winxp running on a vbox. But somehow I have to login as root and run the vbox as root. otherwise if I run the vbox as a normal user, I cannot mount the magicjack usb device, it appears as a grey disabled box. I am sure this is some kind of permission issue, but not sure how to grant the permission.

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

General :: Ps Show Where Process Is Running From?

Nov 10, 2010

Is it possible, using ps, to determine where a process is running from? I have two applications, both are identical and running in parallel directories, such as /app1/start.sh and /app2/start.sh. If I run ps -ef then I'm unable to tell the difference between the two

Using ps (or alternative), how can I tell that PID 123 belongs to app1?

View 3 Replies View Related

General :: Cron: Run A Process But Only If It Isn't Running?

Feb 10, 2011

Is there a way for me to tell cron to run an app BUT not run it if a process exist already?

View 5 Replies View Related

General :: Way To See Only Process Running In Background?

Feb 23, 2011

Is there some way to see only the process running in the background?

View 4 Replies View Related

General :: Get The Notification Of Process Which Are Currently Running?

Apr 7, 2011

How can i get the notification of process which are currently running?

We wrote one script which is being fired for every minute, instead of that is there any to trigger the event from linux core implicitly if there is any change in my process(pid)?

View 3 Replies View Related







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