Questions tagged [not-root-user]

Doing administration tasks without administrative privileges.

Filter by
Sorted by
Tagged with
4
votes
1answer
6k views

How to read the /proc/<pid>/fd directory of a process, which has a linux capability?

As a non-root user I am running a process. The process binary has been given a cap_sys_resource capability. Even though the process is owned by the same user, that user cannot read its /proc//fd ...
0
votes
2answers
52 views

Installing “duplicate” on SSH /home/user

I am on a SSH server and want to use a program that is at /usr/local/bin but I don't have permission. So I copied the program installation files from my system to my user on the server in order to ...
0
votes
1answer
119 views

User permissions

Trying to sort out my file permissions in order not to use sudo constantly (what does not work most of the times anyway) to manage my ruby gems and rails installs. i get permission errors to when ...
2
votes
2answers
2k views

How to create several root-like and non_root-like linux users [duplicate]

I have a red-hat system with its root and non-root users. I have to create n new root-like users and m new non-root users. Basically I have to clone the 2 kind of users already present on the server. ...
1
vote
0answers
30 views

system service to user service information flow

I'm trying to abstract away some /dev/input files so that user-level systems can know when the touchscreen is being used vs. when the touchpad is being used (without having access to raw mouse data). ...
0
votes
4answers
1k views

Shell script by one user to copy a file into directory owned by different user [duplicate]

I have two users and groups in Unix: user1:user1 and user2:user2. I have a directory myDirectory with below details (ls -ltr) drwxr-xr-x. 4 user2 user2 35 Apr 27 10:16 myDirectory Now, I am ...
4
votes
3answers
12k views

Can a single user have multiple crontab files?

Suppose I am creating two crontab files. /tmp/my-crontab /root/my-alternate-crontab Each crontab file is sheduled to run diffrent scripts. When I start the cronjob the first is replaced with the ...
0
votes
1answer
53 views

Fixing permissions on external drive

I have created and mount my drive using root. And now I dont have permissions to write anything on it. [ahmed@arkan Desktop]$ ls -al total 12 drwxr-xr-x. 5 ahmed ahmed 74 Apr 21 17:38 . drwx------....
2
votes
2answers
6k views

Installing software without root user access

I am remote user of super computer having CentOS 6.5 I have to install multiple softwares like gcc automake autoconf libtool bison swig python-dev libpulse-dev (Some of them installed but have version ...
0
votes
1answer
280 views

How to set UIDs and GIDs during install of Debian?

During installation of Debian the default initial UID is 1000 and GID is 1000. When creating a user account during install, is there a way to specify their specific values, for example 3197?
1
vote
2answers
1k views

Install libconfig without being root

I need to install libconfig but I do not have access to root to be able to do apt-get install, how could I install it? PD: github.com/hyperrealm/libconfig
4
votes
3answers
1k views

using pkgsrc in home directory in NetBSD

I'm new to NetBSD, although often using pkgsrc on ubuntu. I can build and install packages from source without any effect ubuntu's package dependencies. For example, even if ruby 2.2 is installed by ...
1
vote
1answer
2k views

Why does libvirt require root privileges by default?

I have tried accessing libvirt (with virt-manager, or with virsh), and there are often issues with permissions. I found out from this blog post that it is possible to add a Polkit rule to allow a ...
3
votes
2answers
802 views

visudo + how to get access to user from other user

On my Linux Red Hat machines, I do the following from root # su - starus $ <-- now I am in starus user $ su - moon <-- now I want to access moon user from starus user ...
1
vote
1answer
93 views

What is the per-user correlate of /usr/share?

At a low level, /usr/share/geany.glade does configure some important aspects of Geany which are not controlled by geany.conf (e.g., visibility of the menubar). Copying a modified geany.glade file in ~/...
1
vote
3answers
116 views

Can I transfer a file to a folder (on a remote server) which is writable only by root (via sudo)?

I have a shell script to set up the environment and install a relatively complex web application on a webserver, which has gradually evolved from a quick bad hack into a larger and slightly less bad ...
2
votes
1answer
1k views

Can user1's process kill user2's process?

Linux kernel supports the traditional concept of a Unix user. Every user-space process has a user owner. Every user-name has corresponding userid in kernel. Kernel does not know user-name. Groups ...
2
votes
3answers
6k views

How to kill the processes when no root permission and nproc limit exceeded?

So, a user had exceeded her nproc limit. Due to this, both SSH and su are unable to login as the target user. However, there is no accessible shell which is owned by the user. How can this be solved ...
1
vote
0answers
377 views

Use dislocker without root access

I installed dislocker using this (excellent) answer. However I'd like to be able to mount and access an encrypter memory stick without root access. Presently, the root password is required in this ...
4
votes
1answer
1k views

What are ways in Linux for non-root user to trigger kernel module loading

One way is to create listening socket for some protocol, and module for that protocol will be loaded. For example, DCCP and SCTP. Are there other ways? UPD: Use case: virtual machine somewhere in ...
1
vote
1answer
16k views

How to change service user in CentOS 7?

I created a service by adding a custom **.service* file in /etc/systemd/system and then running systemctl daemon-reload. However, I can start or stop the service only under root. I would actually like ...
2
votes
1answer
7k views

How can I find active network interface from userland?

I know that I can find which network interface is currently being used by parsing the output of: # ifconfig or # route But how can I get this information as a non-root user? Is there a way I can ...
3
votes
5answers
41k views

How to access another user's folder from another user account

I have some downloads in my root user /root/Downloads folder. How can I access them from another not-root-user account?
1
vote
1answer
958 views

Is possible install FFMPEG Linux 5.2 without root?

I want install FFMPEG to Linux 5.2 without access root, is possible? I use a server to host a website. I have access only access to the directory public_html to host the website. To install FFMPEG is ...
1
vote
3answers
111 views

Can I extend the power of sudo to the distination directorys/files on bash shell?

I have 2 Ubuntu servers: 12.04.5 LTS and 16.04.1 LTS, in a local network, where I'm a administrator of the both servers and can be the super users on them. Let's say each server is A and B, and I log ...
2
votes
1answer
339 views

How do I deny access to user namespace for a program or user?

Rationale User namespaces (CLONE_NEWUSER), although useful security feature, do increase kernel attack surface. For example, one can gain access to iptables: $ iptables -S iptables v1.4.21: can't ...
8
votes
3answers
816 views

How to install a software on my linux box when I don't have root access (sudo)?

I have a Debian server which is a "shared server" so I don't have root access but I want to install youtube-dl on it. Is it possible to install it some other way? Like it only accessing current ...
3
votes
3answers
948 views

What is the differece between root terminal and sudo?

Environment:debian8+lxde. There are two terminal in system tools:LXTerminal and Root Terminal. When to login with a normal user (not root user),and System tools--Root Terminal,you can have ...
0
votes
1answer
1k views

hwclock for non root user

How to make a non root user to view the hardware time other than hwclock command in centos 7 My requirement is to make a non root user to view the time alone
1
vote
1answer
88 views

SSH and SCP piggyback ubuntu machine for a new user

I want to use an existing Ubuntu machine (with a public IP) to allow a user to SSH into it and then use it to SSH/RemoteDesktop/FTP into another linux machine (with a private IP but within the 1st ...
1
vote
1answer
2k views

How to execute root command scripts from not root user with SUID use?

I want to execute a script embedding commands requiring a root user from my not root account without sudoing: /usr/local/bin/dodo #!/bin/bash /bin/sync && /usr/sbin/pm-suspend-hybrid What I ...
2
votes
2answers
2k views

Make directory unmodifiable or undeletable except by root

I would like to prevent a directory from being deleted, let's assume the directory has this path ~/foo is there a way to make it deletable only by the root user, without using sudo and without being ...
1
vote
1answer
461 views

Is it possible to run a program in early user space with non-root privileges?

I'm running a program from the init script in early user space, before the main root fs is mounted. Is it possible to run an application here without root privileges? The obvious issue being that ...
1
vote
0answers
40 views

Managing locally compiled software

I have to run a C++ software on a computer where I only have user access. There are a bunch of dependencies that I have to have installed first before I can run the program I am interested in: All of ...
8
votes
2answers
9k views

How can I run /usr/bin/Xorg without sudo?

This question is about executing /usr/bin/Xorg directly on Ubuntu 14.04. And I know there exists Xdummy, but I couldn't make the dummy driver work properly with the nvidia GPU so it's not an option. ...
3
votes
2answers
5k views

Install curl without being root

I was trying to install a R package called "devtools", but without success. ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’ * removing ‘/misc/u32/huang/.R325/lib64/R/...
1
vote
1answer
3k views

install X11 libraries and header files in user account centOS

I would like to install X11 libraries and header files in my own account (not root) for further use. What other libs do I need to install for that? Where can I find the source codes and installation ...
21
votes
2answers
113k views

Using “su - ” to change user gives “No passwd entry for user”

Specifically, I am trying test something on my build server by switching to the "jenkins" user: sudo su - jenkins No passwd entry for user 'jenkins'
2
votes
1answer
107 views

Allow application to use network shared volume as long as the application knows the volume's address or path

I am porting an application from Windows to Linux (specifically Ubuntu 14.04). The application needs to write data to a network shared volume on a NAS. On Windows, my application can access the SMB3 ...
4
votes
1answer
177 views

How to add the only user on a Debian system back into the sudo group?

I'm using Debian on a headless server that I'm connecting to via ssh. When I installed Debian, I did not create a root account, so the first user created was in the sudo group. Then I added that user ...
0
votes
2answers
5k views

Password Reset on AIX machine trouble

Im trying to reset a user password locally using the root account. The user is adam. Everything looks ok when I type in passwd adam using the root account. It prompts me to enter new password, enter ...
6
votes
4answers
2k 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 ...
0
votes
1answer
37 views

How to use the programs installed in server through a user account?

I am very new to using programs on servers I have been alloted a user account for my Institutes's server and a storage linked to it. I don't have root permissions. All the programs (e.g bedtools,...
10
votes
1answer
19k views

How to enable user_namespaces in the kernel? (For unprivileged `unshare`.)

My Linux kernel must have been configured with user_namespaces when built, but their use is restricted after boot and has to be explicitly enabled. Which sysctl should I use? (If this was turned on, ...
1
vote
1answer
249 views

Install LibreOffice on Solaris without root access?

How can I install LibreOffice on Solaris without root access. I just need to use libreoffice on the command line and do some conversions between Word and RTF. Is this possible to do this just in my ...
1
vote
2answers
2k views

/Library: Operation not permitted when logged in as root user

Im trying to install Jekyll on El Capitan, however I do get permissions error, as you can see below. I am logged in as a root user. Linards:~ Berzins$ sudo gem install jekyll Password: Ignoring psych-...
0
votes
1answer
69 views

Restrict a user so it doesn't have permission to do anything

I am trying to create a user whose only goal is to authenticate and receive jobs and files from a virtual printer (CUPS) in his home directory. The user should not be able to do anything at all. Even ...
0
votes
2answers
5k views

Can I change the permissions of files that root has read only access to?

A few days ago I made the switch from Debian to Arch. When I did that, I backed up my files to an external harddrive. I've moved the contents of that backup to my normal harddrive. Now I'd like to ...
0
votes
1answer
212 views

Configure NFS server to accept connections from unpriviledged ports

I'm working on custom-made NFS client and would like for the purpose of testing to allow connecting to my server from the ports that don't require elevated privileges. I'm sure there was a way of ...
6
votes
1answer
6k views

running iperf over ssh

I'm trying to benchmark the network connection between 2 ubuntu servers on which I don't have root privileges. I did manage to download and start iperf-2.0.9 on both boxes. My problem is I can't ...

1 2
3
4 5
8