Doing administration tasks without administrative privileges.

learn more… | top users | synonyms

2
votes
1answer
83 views

Is there a mechanism to run a “service” by a non-root user? [duplicate]

Is there a way I can have a continuously running, background process that can be controlled by me (a regular, non-root user)? All I need to be able to do is start, stop and restart the process. ...
1
vote
2answers
2k views

gvim on RHEL (Red Hat Enterprise Linux) install in home directory

How to install gvim on a RHEL server that doesn't have it (for use with SSH with X11 forwarding*)? No sudo access is available, so it has to be in the user's home directory. *Getting all the ...
2
votes
1answer
188 views

How do I get tcpsvd to drop its root privileges?

Assume a script runs on boot as root. From this script I want to start tcpsvd -E 0 515 lpd. I want tcpsvd to run as an unprivileged user. But it requires root privileges to bind to the port 515. How ...
2
votes
3answers
2k views

Allow a user to view the home directory of other users via sudo

I am new to system administration. We have a lab set up where we have a server and client machines. The client machines have LDAP users which has the work area for all the users in the centralized ...
4
votes
1answer
193 views

Change owner of own directory

I am fully aware that a non-root user cannot change the owner of a folder to another user even if the user owns it unless they use sudo or have the CAP_CHOWN capability. Is there a way to grant a ...
2
votes
2answers
139 views

Securely allowing users to create accounts

1) I'm struggling to find a secure way to allow new users to create accounts without granting them admin rights to do so. If you already have an account on my system and can work UNIX command line, ...
1
vote
0answers
220 views

linking problems when installing python module and dependencies as non-root

I want to install a certain (non-public, numerical) python module on a remote (Debian squeeze) system on which I do not have root (or sudo) privileges. As the python-dev package was not installed, I ...
1
vote
2answers
16k 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 ...
2
votes
1answer
226 views

Resetting USB device without root permissions

I'm getting a strange behavior on an Android system when quickly plugging and unplugging usb devices from a usb hub. What happens is that after some quick plug/unplug of a device on the hub, I start ...
7
votes
1answer
600 views

How to autostart a background program by a non-root user?

As a non-root user, I want to run a background job when the system boots. It's sort of a service which doesn't require root privilege. Is there a way to do it? One way is to put sudo -u user command ...
3
votes
2answers
255 views

Change password through linux PAM without running application as root

An application I'm writing will have some password change functionality. However I'm wondering if it is possible to not run the account management part of it as root. Right now I'm running into the ...
1
vote
2answers
42 views

Running script on system start as given user

I have a small script on a dev/staging server that runs services inside tmux. The script just creates a few sessions with a few windows each in which various services are running. How can I make ...
-3
votes
1answer
147 views

Break write permission for non root user?

Can non root user edit files he/she doesn't have access to or create new a file in a directory he/she doesn't own? Is there a way to do that? P.S : I know if root user or file owner gives him write ...
3
votes
3answers
1k views

Encrypting loopback images without using a loopback device

I'm trying to design a firmware update system for an embedded Linux system. My plan is to send an image that can be mounted on the target system, so I don't need to unpack the entire file. I also want ...
1
vote
1answer
257 views

LAMP Server setup for personal development

I am setting up a LAMP server in VirtualBox for personal development. This will be an Ubuntu Server 12.04 install, and I will be using Virtual Hosts for Drupal, Yii, and other small PHP apps. Ideally ...
2
votes
2answers
301 views

How to open a program as another user inside a logged display?

I'm trying to open netbeans as a different user, but isn't working. I'm running a Kubuntu 12.04 LTS with KDE. And I tried the following: Open a terminal, type su - myotheruser, type the myotheruser ...
8
votes
2answers
2k views

Installing a package locally to a user - best practices?

I want to install Git locally to a user on a RHEL server (I don't have root access) What would be your cleanest/ most organized way of installing software to a local user account? Installing ...
3
votes
2answers
86 views

How can a user restrict their own group rights without being root?

How can I change my user rights from rwx to r-x at the group level? I'm trying to ensure that I cannot touch any data belonging to other users when I am developing and debugging my scripts. Once I've ...
3
votes
1answer
329 views

How to create rootfs for user mode Linux on Fedora 18?

I want to create a rootfs to be used with an UML kernel and be able to use the internet. I was using febootstrap with packages: bash, coreutils, net-tools, iputils. After using ...
2
votes
1answer
843 views

How to achieve the effect of chroot in userspace in Linux (without being root)?

The goal is to install and run programs in a displaced (relocated) distro (whose / must not coincide with the global /) inside a host Linux system. The programs are not adapted for using a different / ...
2
votes
1answer
223 views

How to set up a script to run as root non-interactively?

I need to set up the following script to run as root whenever I log in: #!/bin/zsh truncate -s 0 ~yourstruly/.juniper_networks/network_connect/ncsvc.log I know how to run the script as root ...
1
vote
2answers
1k views

Redhat: non-root user needs to copy files to a NFS share

Typically non-root users cannot mount directories. Running Redhat Have 6GB tar.gz (/dir/somefile.tar.gz) Need to move to a NFS share on another box (//somebox/somefolder/) We have no other access. ...
4
votes
3answers
438 views

Where are userspace programs supposed to save their logs?

I am writing a script that I want to run without privileges. I want the errors that the script encounters to be logged to some log file. I do not not have privileges to write one to /var/log. And I do ...
4
votes
2answers
422 views

Installing gcc without root?

I'm running OSX, and I don't have root, or an existing compiler. Is there any way I can install gcc? Are there official or trusted unofficial mach-o binaries that can be downloaded for a certain ...
2
votes
1answer
59 views

How might I detect memory errors if I do not have root or physical access to a Linux system?

The background to my question is as follows. I currently rent a virtual private server from a major hosting company, which I use to run a minecraft server. I have a suspicion that there may be bad ...
0
votes
1answer
313 views

Single-user binary installation location?

I'd like to install a binary for only my user, because I don't have root, and therefore don't have access to /usr/bin. I've tried ~/bin, and it can't find the binary. I'm on Mac OS 10.6.7. Is there ...
3
votes
1answer
715 views

update-alternatives just for one user

I'm using a shared server. On that server different versions of Java are installed: Selection Path Priority Status ...
1
vote
1answer
337 views

Block Internet Connection through Terminal on OSX

Even though I don't have administrative privileges, can I block Internet connection on my Mac OS 10.8 machine, through the terminal? I want to do this because I am too lazy to disconnect ethernet ...
2
votes
1answer
145 views

Compile a program without sudo access

I am connected to a linux system with SSH in my college. I found that ctorrent is a console alternative of bitorrent. I have downloaded the tar.gz source but to compile/install it needs sudo access ...
2
votes
1answer
780 views

dhclient for normal (non-root) users

Calling dhclient as root works beautifully on my debian machine. However, I would like to allow some users to execute dhclient, too. So far, I have tried these two examples: Example 1: When a normal ...
0
votes
2answers
81 views

Is there any way of prompt a message when a command in /usr/sbin/ is tried to run as nonroot?

In most Linux distros I've used when you type for example ifconfig as a normal user, you get a prompt message telling you that only root can execute such command. In Debian, it only says command not ...
1
vote
1answer
108 views

Virtual Python installation not allowing ez_setup?

I don't have root on my system, so I'm trying to create a virtual Python installation. I ran virtual-python.py, and it told me to run ez_setup.py. I found it online and ran it with the command ...
6
votes
1answer
5k views

How can I make this daemon/init run as a non root user?

I have an init script to kick off a daemon. The problem is it runs as root. I would like it to run as a user called "deploy". Ubuntu 12.04 #! /bin/sh # File: /etc/init.d/unicorn ### BEGIN INIT ...
1
vote
2answers
1k views

Get a list of users with access to the host

I tried to go into /home and list all the subdirectories but it seems that all dirs that are not mine are hidden. I also tried cat /etc/passwd but that didn't list my very own ID I was logged in ...
4
votes
2answers
283 views

manage unix user settings across multiple machines

I have many different linux machines with similar "profiles". I want to keep my settings in sync. e.g vimrc, zshrc,. I have the problem that they are various distributions of Linux with various setups ...
5
votes
3answers
10k views

Creating an user without a password

I'm trying to create user without password like this: sudo adduser \ --system \ --shell /bin/bash \ --gecos ‘User for managing of git version control’ \ --group \ --disabled-password \ ...
4
votes
1answer
310 views

Completely disable GNOME for my user in Ubuntu

At the office we've been issued laptops with Ubuntu pre-installed. Unity is of course the OS default, but KDE is available. I prefer KDE and so have set KDM and KDE as my defaults. However some GNOME ...
4
votes
2answers
1k views

Using startx on Fedora 17, a non-root user cannot join new wireless networks — how to fix?

I have Fedora 17 installed on a Lenovo X230, and if I leave it configured to boot into Gnome using systemd's runlevel5.target (or graphical.target), which is the default, networking seems to work just ...
0
votes
2answers
4k views

Avoid asking password if `su -m user command` is used under `user`?

If I run the script containing su -m user service userservice start under root user, I do not need to enter the password. But when I run it under user user, it asks passwords all the time. That really ...
1
vote
1answer
460 views

Trying to install fonts on Linux Mint Lisa, but it looks like I have a permissions or ownership problem

I downloaded the Source Code Pro family of fonts, but cannot install them via the Font Viewer. If I give myself admin powers, I can manually add them to the rest of the fonts, so I'm guessing it's a ...
2
votes
1answer
449 views

Being not admin user how to install local GCC instead of provided?

So I came into my classrom Debian is installed, and gcc 4.1. I want to install (compile from sources is an option - I have time..) for my self GCC 4.7 and adress it in bash as gcc anywhere. Is such ...
1
vote
1answer
385 views

Is there a light HTTP proxy I can run without root privileges?

I am on a network where outgoing port 8080 is blocked on most machines (i.e. I cannot access services on port 8080). Some of the machines on the network however do not have this restriction. I would ...
2
votes
4answers
2k 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
679 views

Installing Chrome on 64bit Gentoo without Superuser Access

For a bit of background, I am trying to install Chrome (or Chromium) on to a gentoo user account at my university. We are allowed to install software as we like, however we lack superuser access ...
3
votes
1answer
222 views

Fedora16, ekiga just works in superuser mode

I've got a fedora16 running and I'd like to use ekiga as a softphone. Now I'm running into some problems. Starting ekiga as a normal user gives me could not register (globally not acceptable) ...
2
votes
1answer
1k views

How to get list of available wireless networks without being root

I would like to get a list of all the wireless networks. iwlist wlan0 scan | grep ESSID This will only show me the wireless network I am currently connected to. When I run the command as root, it ...
6
votes
1answer
243 views

How do DE's call ACPI functions?

Okay, first off, this is not a problem I am facing, but I would like to understand this better. If I wish to shutdown / reboot my machine from the command line I need to call: $ sudo poweroff $ sudo ...
4
votes
2answers
1k views

umount an external ntfs drive as non-root

I have ntfs-3g installed, and use this udev rule to auto mount external drives automatically. When I try umount it as non-root, it says: umount: /media/umm is not in the fstab (and you are not root) ...
7
votes
2answers
5k views

Samba mount with password prompt as non-root user

I want to mount a password-protected SMB share (served by a Windows machine). The share is protected by a user name and password, and I may not write the password in a file, I want to be prompted for ...
2
votes
1answer
268 views

How should I go about setting up vim-pathogen plug-ins for a group as a user with no root permissions?

I do not have root permission on a linux cluster, but I would like to share my vim-plugins to all other members of a linux group using vim-pathogen. We have a group-accessible folder, so that's where ...