Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Linux


Advertisements:










General :: Set Umask For Process Running Root User?


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 (Posted: 11-23-2009, 10:38 AM)

Sponsored Links:

Related Forum Messages For Linux category:
Software :: Change A Process Running In Root-user To Non-root User ?
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

Posted: 10-28-2009, 02:58 AM

View 4 Replies!   View Related
General :: Kill Process Started With Different User Without Being Root / Sudoer?
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?

Posted: May 3 10 at 12:12

View 7 Replies!   View Related
General :: Detailed Description Of The Login Process For Both Root And Normal User?
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.

Posted: 05-19-2010, 05:54 AM

View 9 Replies!   View Related
General :: Find Out How Much Time An Already Running Process Is Spending In User And Kernel Spac?
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.

Posted: 06-08-2011, 04:30 PM

View 3 Replies!   View Related
General :: Set Umask To 0000 For A Special User?
Please see below:

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

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

Posted: 01-25-2010, 11:09 PM

View 1 Replies!   View Related
General :: Umask And Permissions - Has Umask 007 Bad Side Effects?
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"?

Posted: 03-16-2011, 08:39 PM

View 1 Replies!   View Related
General :: Setting User Mountpoint Permissions In Fstab Without Uid / Umask
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.

Posted: 01-30-2010, 10:50 AM

View 2 Replies!   View Related
Ubuntu :: What Running Process As Root Actually Means
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?

Posted: April 8th, 2010

View 9 Replies!   View Related
Ubuntu :: Running A Process Indefinitely As An User?
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?

Posted: February 27th, 2011

View 4 Replies!   View Related
Debian :: Kill An Process Running From An Folder And With User Parameter?
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.

Posted: 2010-12-04 14:20

View 4 Replies!   View Related
Programming :: Get The Context Info For A Thread/process Running In User Mode?
How can I get the context info for a thread/process running in user mode? At a minumum, I need to get the stack frame address for the current thread as well as for other known threads. Register info would be nice too!

Posted: 05-23-2007, 02:37 PM

View 1 Replies!   View Related
Ubuntu Servers :: Access Denied For User 'root'@'localhost' / Set The Password During Installation Process?
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]....

Posted: December 14th, 2010

View 8 Replies!   View Related
Software :: Change Umask Of User ?
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)

Posted: 01-07-2010, 04:12 PM

View 3 Replies!   View Related
OpenSUSE Install :: Where To Set Umask For User
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 ).

Posted: 27-Oct-2010 03:00

View 9 Replies!   View Related
Slackware :: Running Root Commands As User?
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?

Posted: 11-07-2009, 02:30 PM

View 12 Replies!   View Related
Fedora :: Sudo Running As Root Instead Of Specified User?
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"?

Posted: 25th January 2010, 08:29 PM

View 2 Replies!   View Related
Slackware :: Running Set Less As User Reveals Root Password?
When I run set | less as a user, my root password is displayed in the last line of rules.

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

[code]...

Posted: 03-26-2011, 09:46 PM

View 7 Replies!   View Related
Software :: Sudo Is Not Switching To Root, Running As Same User Instead?
Take a simple requires-root option, such as:

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

[code]...

Posted: 05-15-2011, 10:32 AM

View 5 Replies!   View Related
OpenSUSE :: Warning: Running BOINC As Root User
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.

Posted: 19-Apr-2010 06:31

View 13 Replies!   View Related
Ubuntu :: Change Umask On Per User / Group Basis?
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.

Posted: March 25th, 2011

View 4 Replies!   View Related
OpenSUSE Install :: Running Script As Root At User Login?
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

Posted: 19-Feb-2010 05:10

View 6 Replies!   View Related
General :: Umask And /usr/bin/umask ?
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...

Posted: 04-25-2011, 07:36 AM

View 6 Replies!   View Related
Fedora :: Root User And Got Magicjack Working Under A Winxp Running On A Vbox
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.

Posted: 22nd May 2011, 12:35 PM

View 3 Replies!   View Related
General :: Adding Root Privaliges To User Accounts Or Auto Login As Root?
I am tryig to find out how to auto login as a root user or to give root privaliges to a user account.All I can find is people saying it is a bad idea (which I agree with but I am building a live os so damage cannot be done!!)Can anybody let me know how it is done

Posted: 01-01-2007, 08:17 PM

View 14 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved