All Questions

Tagged with
Filter by
Sorted by
Tagged with
1
vote
1answer
31 views

If I run a command with `sudo` is it still “invoked by an ordinary user”?

Quote from manpage of davfs2.conf for mount.davfs: There is a system wide configuration file /etc/davfs2/davfs2.conf and user configuration files ~/.davfs2/davfs2.conf. When mount.davfs is ...
0
votes
1answer
73 views

Does a user have to log in to run a process and become its owner?

In general, does a user have to log in to run a process and become its owner (ruid, or euid)? Does this apply to any user or any non-root user? For example: In the boot sequence of Linux, the kernel ...
1
vote
1answer
424 views

monitor multiple users with top

Is it possible to monitor processes of multiple (but not all) users in Linux top? Something of this kind: top -u user1 -u user2 Thank you for your help!
0
votes
1answer
46 views

How to replace the user IDs and group IDs with names instead of numbers in “ps”?

The following command will list the effective user ID and the effective group ID of each process: ps -o pid,euid,egid But the IDs will be listed as numbers, for example: PID EUID EGID 123 1000 ...
1
vote
0answers
23 views

Program is being executed differently

I'm executin Sublime Text 3 by terminal on GNOME like so: # subl and I execute the program by the left tab in GNOME too. <-- there. The same program. But I'm getting different settings. In a ...
9
votes
2answers
1k views

Can a process have an owner? What does it mean?

We can determine the owner of a process by using the ps command. Does this mean that other users cannot run / kill / resume that process?
0
votes
1answer
88 views

Bash / upstart - launch command under another user, replacing current process

I'm starting a process foobar as an upstart service which should be run under user joe. For this I'm using su -c: script su -c "foobar" joe end script However the su process is still lying ...
3
votes
1answer
1k views

In FUSE, how do I get the information about the user and the process that is trying to read/write in the virtual file system? [closed]

Say I created a FUSE filesystem called foo and mounted it at /mnt/foo. If I have a user called myuser that is running vi to open a file in /mnt/foo, what FUSE methods or data structure contains the ...
6
votes
4answers
1k views

Is there a utility for daemonizing processes as non-privileged user?

A thing I frequently want to do is launch some long running process or server as my own non-privileged user and then have a way to tell if it's still running and restart it if not. So for example I ...
9
votes
3answers
540 views

Set-uid executable and resulting process user [duplicate]

In Ubuntu 14.04, the passwd executable is -rwsr-xr-x 1 root root 47032 gen 27 01:50 /usr/bin/passwd and the ping executable is -rwsr-xr-x 1 root root 44168 mag 7 2014 /bin/ping so (for both) the ...
1
vote
2answers
142 views

When opening a terminal does not require a login?

Speaking about Linux and in particular Ubuntu (from 14.04) systems: Case 1 - As pointed out in this answer, processes that allocate a pseudo-terminal don't need to make a login: for example, cups. ...
0
votes
1answer
104 views

Process login vs user login

In a Ubuntu 14.04 system, who has the following output: user1 :0 2016-05-02 14:49 (:0) user1 pts/4 2016-05-02 15:10 (:0) So apparently just the pts/4 is used. But, for example, ...
2
votes
1answer
1k views

OOM-kill a process from user with highest memory consumption?

I have a multi-user system, where active users should get a fair share of the available memory. Can I set up Linux to kill a process of the user with the highest total memory consumption? This will ...
2
votes
2answers
3k views

Creating an automated idle process kill script

I would like to implement a solution to a specific instance of the generic problem wherein idle users tie up resources. I know the user list can be retrieved with w, the associated PID with ps, and ...
1
vote
1answer
1k views

Security - Runing Daemon, program as root or user vs sudo su

I have some questions about Linux security: Running a process as root is a big mistake (root has too much power + a program get too much permissions in the system). I always ran processes as a user (...
1
vote
2answers
2k views

Which user is running the most processes?

My top looks like this: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6524 asjzdiwq 30 10 500m 41m 24m S 0.0 0.3 0:15.27 php-cgi 21274 asjzdiwq 30 ...
1
vote
1answer
102 views

Restricting CPU time of processes by executable path

Is there a way to restrict CPU time (duration) for all processes which are invoked by executables that are located in a certain directory? I would like to be able to auto-kill all applications which ...
4
votes
2answers
3k views

How to update user/group settings of a running process?

Suppose I change some user settings like its initial login group or add it to a new group. I now can do su user and work with these new settings. But all the previously running processes will still ...
1
vote
1answer
1k views

Killall processes under a user?

So, I know you can pkill -U <uid>, but whenever I've used this, my entire system crashes. Further investigation shows it probably is because I'm not matching anything, so it matches everything? ...
12
votes
4answers
5k views

Why are there many accounts? I'm the only user

I am running an Ubuntu 12.04 desktop system. So far I have only installed some programs (I have sudo rights). When I check the list of users on the system, I see a long list, like more than 20 users&...
1
vote
0answers
800 views

Stop all processes by a user: children of supervisord are still running

I'm trying to delete a user but it keeps saying that user is currently used by process ID x I tried everything here and here, nothing works, how do I kill all the process by a certain user in order ...
1
vote
2answers
2k views

how to get info about the user and the processes he is running in systemd?

If I wanted to know who is logged in since when and what are the processes currently running under his control, how can I do that in systemd?
2
votes
1answer
58 views

w command for the other network hosts

While the who command refers to the local machine, rwho shows the same informations about all the known hosts of the local network. Similarly, w shows informations about the users on the local ...
1
vote
1answer
88 views

How do I identify the user that is attempting to create a file?

I have a PHP script that is attempting to create a file, but it can not because of permissions. I would like to identify which user the system sees as the one requesting to create the file. I would ...
2
votes
1answer
955 views

tftpd runs as root, despite explicit option “--user tftp”

I start my tftp server with the option --user tftp so that it runs as user tftp instead of root. However, ps shows that the process still runs as root ps aux| grep tftp root 2542 0.0 0.0 ...
0
votes
3answers
1k views

Owner of init and xterm

I don't understand what is owner of process. Owner of bash is me. Then who is owner of init and xterm? I searched on google but I can't find.
2
votes
4answers
996 views

Open program as root, close root session but still program is running

When I run my backup script, first I switch to root, mount a truecrypt partition and then run the script. I've noticed that after run truecrypt as root, I can exit the root session and truecrypt ...
2
votes
3answers
16k views

How to tell who is connected via vnc to my machine?

How do I check how many vnc connections or different users are currently connected to my machine? Only through wireshark? And how do I kill any other users connected through vnc?
3
votes
2answers
2k views

How to trace a process to original user?

Say, on a Solaris server, user1 logs in, switches to someother user, say sruser, using su - and then starts a process of id X. And then another user user2 logs in, switches to sruser the same way and ...