Doing administration tasks without administrative privileges.

learn more… | top users | synonyms

3
votes
4answers
6k views

Allow paswordless user to change to another passwordless user

I have two users dev and tomcat neither of them have a password. How can I allow dev 1 do su - tomcat without having him having to enter any credentials? 1 connects with ssh keyfile
3
votes
1answer
25 views

How do I set up busybox to allow a non-root user to set the date?

I have an embedded system built with busy box. I allow a user named "app" to download a program/script to a directory and it will be run on boot. The program should be allowed to set the date. It ...
3
votes
1answer
47 views

How to get number of opened file descriptors for user

I know about lsof and ls /proc/*/fd but none of them are atomic AFAIK. Because in the latter case I would need to get all pids for user and then filter by them and by that time some of the file ...
1
vote
5answers
53 views

How to install dos2unix on Linux without root access?

$uname -a Linux vm-** 2.6.32-573.8.1.el6.x86_64 #1 SMP Fri Sep 25 19:24:22 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux I downloaded dos2unix-7.3.3-win32.zip and unzipped it. Under bin folder from the ...
7
votes
2answers
138 views

Does managing cgroups require root access?

I am trying to work with control groups on two different operating systems (Ubuntu and CentoOS). There are few concerns that I would like to ask. I am trying to create a control group using the ...
0
votes
0answers
17 views

Creating an user to access a specific director with just exec permission in Redhat

I am trying to create an user that I can access an specific folder and give this user just the execute access to a .sh script into REDHAT So I've created the user and set that user to the folder but ...
0
votes
0answers
33 views

Can we run apache on a non-root account?

Apache is started by the root user, then switches to the user defined by the User directive; is there any chance where we can change this default behavior? Apache should start using a non-root account ...
5
votes
1answer
301 views

How can a poor old non-root user get the core dumps systemd ate?

As we know, with systemd, core dumps don't just get written to the current directory but to some obscure journal. Now, I'm a poor old non-root user on some machine, and - I want my core dumps! I can't ...
9
votes
9answers
14k views

How to get dmidecode information without root privileges?

I'm writing a program that displays various system information (on a CentOS system). For example, the processor type and speed (from /proc/cpuinfo), the last boot time (calculated from /proc/uptime), ...
6
votes
1answer
4k views

How do I allow non-root users to control a systemd service with instances?

I need to allow users in the dba group to control the database@ services. The answer to this related question is to just list all systemctl "verbs" that I want to allow in the sudoers file, however, ...
3
votes
1answer
1k views

Mount a windows share without having root credentials

I am trying to mount a Windows shared folder in my home folder. I am able to execute the following command from a Linux (i.e., CentOS) machine which I have sudo access. The command that I am using ...
3
votes
2answers
43 views

Bash completion for user without access to /etc

I'm using a Chromebook (with a developer mode enabled), and as someone of you may know, there is no write access to the system directories (including /etc/). I'd like to enable the bash-completion ...
2
votes
2answers
2k views

I can't enable or disable a user service: Failed to execute operation: No such file or directory

I want to debug/test a program in eclipse that uses a Redis server so I decided to turn the server into a user service to have the privilege of running it. What bothers me is that I can start or stop ...
1
vote
1answer
30 views

How to install something that reads from clipboard (like xclip or xsel) without using sudo?

I want to install xclip or xsel to a Linux box without using sudo (because its the box is not mine and I am not allowed to sudo). However, I am allowed to use environments or package managers like ...
1
vote
0answers
28 views

Access directory as a different user

On a Debian (Jessie) server provided by my university, I have a mounted directory (say it's /MagicDir) that can only be accessed by one user (say magicuser). Not even root can access this directory! ...
1
vote
1answer
43 views

Changing Shell to /bin/bash without root access via file [duplicate]

lets assume I am user(with no rights) and I need to change my shell as a default to /bin/bash by editing a file. So where I can find a file for a specific user where I can edit my default shell and ...
0
votes
0answers
22 views

Install Docker packages for non-root users to user home

I have access to Grid5000 and would like to use Docker containers on it. Tutorial says, that users should install the tools in the user's home and add the user's home to the PATH environment variable. ...
1
vote
3answers
196 views

How come root can do this, but sudo can't? [duplicate]

I am set up as a sudoer on my Debian machine, and I use it all the time to install software etc... I came across this interesting situation that I am scratching my head about: I tried to enable the ...
13
votes
6answers
33k views

Allow non-superusers to mount any filesystem

Is it possible to allow some particular users (e.g. members of a group) to mount any filesystem without superuser privileges on Linux? (Another question might have been "in what ways a user can harm ...
2
votes
3answers
2k views

How to set the default gcc version for only one user

I share a server (Ubuntu 11.04) with other people and I am the only one who has to use gcc 4-4 for my code, the rest is using 4.5. I already installed gcc 4.4 but how do I make it the default for me, ...
2
votes
1answer
2k views

Trouble installing lxml with custom install location for libxml2/libxslt

I am attempting to install a python module called lxml to my account on a supercomputer running RHEL. I do NOT have root access or super user status. lxml requires the dev/devel versions of libxml2 ...
1
vote
1answer
14 views

/usr/bin/kde-print-queue requires sudo rights - how to let normal use pause printer?

I need to let a user without general sudo rights pause and unpause a printer. The command is: /usr/bin/kde-print-queue HP_Printer1 However, the problem is shown here: "HP_Printer1" NOT ...
2
votes
2answers
35 views

Can I set my core file location without being root?

It seems strange that I need to be root in order to say "place cores in my current directory" (via cat whatever /proc/sys/kernel/core_pattern). Isn't there any user-specific override for this?
9
votes
3answers
5k views

How could we allow non-root users to control a system.d service?

With sysvinit, a sudoers entry like this would suffice: %webteam cms051=/sbin/service httpd * This would allow for commands such as: sudo service httpd status sudo service httpd restart Now, ...
19
votes
2answers
8k views

Where should a local executable be placed?

I have an executable for the perforce version control client (p4). I can't place it in /opt/local because I don't have root privileges. Is there a standard location where it needs to be placed under ...
1
vote
0answers
29 views

How to install iwidgets without root access and set the enviornment

Recently, I want to run a script (PWgui) which requires Tcl (Itk). The manual suggests that I have to install iwidgets4 beforehand. I am using the university cluster and don't have any root ...
5
votes
3answers
57k views

How to properly configure sudoers file, on debian wheezy?

I have seen many blog posts that say, it is enough to do aptitude install sudo su root adduser USERNAME sudo But that only protects aptitude, in other words: aptitude install sendmail will ask ...
0
votes
2answers
261 views

Does a user have permissions to write outside /home/userDir?

Does a normal* user have permissions to write anywhere else than his own home dir? (no sudo and those privilege escalation tools) I say normal because I do not know more categories than root and ...
0
votes
1answer
27 views

How do you set a service run as a non user at boot time?

I have a PostgreSQL server that I start on the command line when I log on after I logon. It doesn't run as the normal PostgreSQL service, but under my name with the data stored in my home directory, ...
1
vote
0answers
33 views

Build xpra on local directory without root priviledges

I am trying to build xpra on local directory without root priviledges. The xpra official site says: https://www.xpra.org/trac/wiki/Building Building with distutils For installing into a local ...
2
votes
2answers
74 views

OpenSUSE disabled root login (no root psswd set) >> yast, config issues

I disabled the root login on my system (blank password). Now I cannot configure my system from GUI (it asks for the root password). Everything is fine in CLI (e.g. launch yast2 from CLI works ...
1
vote
2answers
75 views

Format a USB drive as unprivileged user

I always thought unprivileged users couldn't format a USB drive, only root user could, so I used to mess up with gparted or fdisk. After years or daily Linux usage I just discovered that ...
1
vote
2answers
178 views

temporarily disabling one's own filesystem write permission

I can't believe there is no simple solution to this (because it seems potentially a very useful feature to me), but so far I couldn't find any. I'd like to be able to (temporarily) turn off my own ...
3
votes
1answer
22 views

Can custom locale spec live under ~/?

I understand that one can put custom locale specs under a system-wide directory (e.g. /usr/share/i18n/locales), but is there a way to configure one's locale to use a spec that lives under ~/? ...
25
votes
6answers
15k views

Can I create override dns similar to writing in /etc/hosts without root access

I want to set a dns record that my browser will use, but I don't have root access, so I can't modify /etc/hosts. I need to do this for testing vhosts with apache, whose dns hasn't yet been set up. I ...
4
votes
2answers
1k views

How to use libraries installed by nix at run-time?

I'm using nix in "single-user mode" in a system where I'm not the root (see below for a description of my nix setup). I wanted to quickly run one of my binaries which is dynamically linked with a ...
97
votes
6answers
40k views

Can I create a user-specific hosts file to complement /etc/hosts?

Is it possible to add a list of hosts that are only specific to a certain user? Perhaps a user-specific hosts file? This mechanism should also complement the entries in the /etc/hosts file.
5
votes
1answer
490 views

Why doesn't my systemd user unit start at boot?

I'm trying to create a systemd user unit and have it start when the system boots. The service does start manually, however it does not start at boot. From searching the Internet I learned that in ...
1
vote
2answers
322 views

Cannot access the hardware clock as a non-root user

I try to use the hwclock but I get this output: [arkadi@arkadi-linux /home/arkadi $]hwclock hwclock: Cannot access the Hardware Clock via any known method. hwclock: Use the --debug option to see the ...
4
votes
2answers
111 views

What programs can I *not* install when I have a standard account?

I'm an undergrad in the astrophysics department and I have access to the Red Hat Linux computers, but only from an undergrad account I tried installing matplotlib once, but it was a massive pain (and ...
8
votes
5answers
4k views

Can I allow a non-root user to log in when /etc/nologin exists?

Suppose a non-root user with sudo privileges executes a delayed shutdown (shutdown +10 or whatever) and logs out. Then, before the shutdown occurs, he wants to log back in and cancel the shutdown. The ...
39
votes
3answers
31k views

Why can't a normal user `chown` a file?

Why is the chown command root-only? Why can't non-root users use chown to give away files they own?
41
votes
10answers
11k views

Non-Root Package Managers

From my research, I seem to notice that all package managers insist on being used as a privileged user and must be installed into /. Typically, what I like to do is create a throwaway account, ...
0
votes
0answers
148 views

Mounting an FTP drive without curlftpfs

I need to access the FTP drive of a client, of a server to which I do not have SSH access, and since my laptop is being repaired I'm working on a computer that I don't have root rights of. Curlftpfs ...
2
votes
1answer
42 views

How to change the host file after login

Was wondering whether in a Nix environment I can change the content of the host file, mainly to prevent one or two site being accessed from that particular user, and only for his account (not with ...
1
vote
1answer
96 views

Use XFCE4 Whisker Menu without root privileges

We have XFCE 4.10 on our workstations. I don't really like the built-in menu so I'd like to install the Whisker Menu. I don't have any root privileges, though. I tried building the plugin and ...
1
vote
1answer
132 views

“No more PTYs” when starting screen as non root-user

Whenever I try to start a screen-session as a non-root-user I get "No more PTYs." as a response. Same command in the same directory as root works properly. I tried the solution from this post but it ...
1
vote
1answer
62 views

directory size in conky

Conky is a system monitor software. I want to display the directory size of /usr and /var. Unfortunately I did not found any conky command so i made my own. /usr $alignr${exec du -sch /usr | head -n1 ...
1
vote
0answers
70 views

mount through fuseiso9660 appending ;1 to filenames

I want to mount iso9660 files without root permissions through some program and I have chosen fuseiso9660 for this purpose. But whenever I use the command fuseiso9660 /path/to/iso ...
4
votes
3answers
1k views

Permanently switching to zsh in a script, without being root and without being asked for the password

Is there any way to run chsh -s /bin/zsh without being root and without being asked for the password? I want to put it into a non-interactive script that isn't called by root.