-3
votes
2answers
30 views

How do I run as a limited user while logged in as Root, and another question

Is there a way to, on linux, do: run as limited user when logged in as root? (like sudo but vice versa, so instead of GRANTING rights, it limits them, i.e., for use with "bundle install" for missing ...
1
vote
2answers
50 views

Unable to get rid of root user and privileges

I am told that the most basic security to set up in Linux is to change the superuser name from root to something obscure so I run these steps to add new user $ /usr/sbin/adduser new_username $ ...
2
votes
1answer
23 views

Desktop app run by admin user (but not explicitly with sudo) takes file ownership of shared file

Similar to http://stackoverflow.com/questions/15143614/file-ownership-changes-to-root-after-saving-from-a-program-in-ubuntu but I can't use the answer since I'm not running a command-line app as sudo. ...
2
votes
1answer
36 views

Copy file from USB drive to a desktop loaded via a LiveCD

I have booted my computer using a LiveCD and want to copy a file from a USB drive to the LiveCD loaded desktop. I want to copy a file from the USB drive to the desktop environment in memory, which ...
2
votes
1answer
422 views

Vim Error E138: Can't write viminfo file $HOME/.viminfo!

I'm afraid I've run into something rather strange. When I open a file normally, vim README.txt, everything is fine. But upon sudo vim README.txt, the file renders blank, and gives me a E138: Can't ...
1
vote
1answer
62 views

How to change permissions/owner or delete Downloads folder (owner: root wheel)?

Something strange happened with my Downloads directory on my Mac OSX v 10.7.5. All of a sudden I wasn't permitted to save anything to the directory. The directory is in users/kelly/ and is the only ...
0
votes
1answer
43 views

Execute scripts without decrypting them

I have a set of scripts (bash, ruby, python) and want to put everything into a container like file so I can deploy this container on a lot of servers. This scripts need to protect from accessing other ...
1
vote
2answers
120 views

Why can user have lower permissions than group or other? Who can change them?

It is my understanding that the owner of a file user can have lower permissions than group or other. What is the justification for this? Can only root and the owner change the permissions on a ...
1
vote
2answers
75 views

In Linux, why do you need to be root to write to /proc/sysrq-trigger?

WARNING: THE NEXT KEY COMBINATION WILL CRASH YOUR COMPUTER Ok, I get that this is an administrative tool and all, but I realized that any user can do ALT + SysRq + C. This link explains what I'm ...
1
vote
1answer
187 views

OpenELEC, non-root user, home directory, SSH

I'm running OpenELEC on Raspberry Pi As you know, directory /storage is a shared home folder between user root and user openelec This makes a problem when you want to setup ssh key authentication for ...
3
votes
1answer
202 views

What is the relationship between root and kernel? [closed]

Based on part of the first answer of this questions: read from a file (the kernel must check that the permissions allow you to read from said file, and then the kernel carries out the actual ...
1
vote
1answer
251 views

Can't edit sources.list as root

I cannot edit/move/delete the sources.list file, despite being root. When I do ls -la /etc/apt it reports this: root@nibelung:~# ls -la /etc/apt/ total 356 drwxr-xr-x 6 root root 4096 Feb 28 ...
14
votes
6answers
3k views

Can root/superuser read my read-protected files?

On shared unix hosting, if I have a file sensitive-data.txt and I issue: chmod 600 sensitive-data.txt Can root user still read my file? Specifically I'm wondering if it's safe to store my password ...
6
votes
6answers
179 views

File protection in Unix

Is there a way to protect a file in such a way that even root cannot delete it or rewrite it after creating it? I have a file which is created by root under /var/log/ and I want to restrict all users ...
0
votes
1answer
528 views

MySql not accessible by root user

I have a local MySql server. It is started as I can access it with my local user like $ mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 66 Server version: ...
1
vote
1answer
111 views

How to change permissions from root user to all users?

I created a folder on the command line as the root user. Now I want to edit it and its contents in GUI mode. How do I change the permissions on it to allow me to do this?
2
votes
1answer
95 views

How 'passwd' gains ROOT user permissions?

How does Linux knows that it has to give euid 0 (uid of root) to only certain process like passwd, setuid, etc. If a process can gain root user's permissions, will it not lead to security breach in ...
3
votes
2answers
231 views

Seems that chown is allowed to non root user

We are using LDAP authentication and probably another things that I did not understand well, in our company so maybe the following questions are result of this. I have found strange behavior of chown ...
7
votes
1answer
657 views

why have programs like su access to /etc/shadow

Normally only root can access /etc/shadow. But programs like su and sudo can check passwords without running as root. So the question is: Why can these programs access /etc/shadow without privileges? ...
2
votes
2answers
215 views

Execute user script as root in startup applications

I just created a script (logscreenlock) to log lock/unlock screen events (derived from this post): #! /bin/bash dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" | ( while ...
3
votes
1answer
594 views

Can edit file as root, but not using sudo

I just faced a really strange situation. I was trying to edit file /usr/lib/thunderbird/thunderbird.sh, which has the following permissions: $ ll /usr/lib/thunderbird/thunderbird.sh -rwxr-xr-x 1 ...
3
votes
2answers
135 views

Log in as one user but authenticate as another

This might be a weird question but I wonder if there are possibilities to this. When I'm configuring a system I prefer to be root so that I don't have to sudo everything. However, the root account is ...
0
votes
0answers
63 views

Root has no permission on virtual console screen devices

Even being root I can't do the following: # cat /dev/vcs1 cat: /dev/vcs1: Operation not permitted And the rights are set correctly: # ls -o /dev/ crw-r--r-- 1 root 7, 1 Aug 5 22:00 vcs1 ...
3
votes
1answer
584 views

Poweroff or Reboot as normal User

To run the command poweroff or reboot one needs to be super user. Is there anyway I can run this as a normal user? I just don't want to sudo and enter my password every time I reboot or power off.
4
votes
1answer
75 views

Root not affected by file permissions?

Why does this work as root? # touch test1 # chmod 000 ./test1 # echo "test" > ./test1 I take it root is not affected by file permissions?
6
votes
2answers
2k views

Why cannot find read /run/user/1000/gvfs even though it is running as root?

Can someone tell me what I'm doing wrong, what this is, or how to fix it? I'm running Fedora 18 and getting the error shown [root@servername /]# find . -name ngirc find: `./run/user/1000/gvfs': ...
1
vote
2answers
299 views

Cannot remove /log/var/snort as root

I am using Ubuntu 11.10 Gnome. I uninstalled snort in order to install a more recent version. The new installation initially failed because the system would not let be rm or modify /var/log/snort ...
1
vote
1answer
780 views

How to suid iwconfig on Debian wheezy?

I have a script running under my own user account that takes care of all sorts of wireless interfaces. It (more or less) intelligently switches wireless LAN off and on and so forth. However, it does ...
2
votes
1answer
214 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 ...
0
votes
0answers
49 views

Root user can't do everything? [duplicate]

Possible Duplicate: Redirecting stdout to a file you don’t have write permission on I'm quite new to Linux and I have a permissions questions. I'm using Linux Mint. If I go to /opt and do ...
3
votes
2answers
142 views

Make a programme executable by common users

I've installed hddtemp on my Arch Linux, but it needs to be run with root permissions. I want to execute it as a normal user without using sudo. How can I do this?
1
vote
2answers
152 views

Problem accessing /home from different partition

I'm currently using Chakra on /sda1 and Fuduntu on /sda2 (a partition I keep for trying out and playing around with distros), and both systems use /sda3 for each different /home partition (I'll call ...
7
votes
2answers
7k views

How do I find out if I am sudoer?

How does Linux system behave when I am not sudoer? Here is what happens if I try to use sudo: server:/tmp>$ sudo cal [sudo] password for user: Sorry, try again. Is it possible that I just don't ...
1
vote
3answers
2k views

Root permission - username ALL=(ALL) ALL does not work

I'm a beginner. I'm trying to give my user root permissions, so I edited the sudoers file like this: black ALL=(ALL) ALL "black" is my username. But I still don't have root permissions, and ...
5
votes
2answers
15k views

How to give user root permissions?

I just installed Arch. Works great. I created a new user, logged in with it and now I'm trying to install several thing with pacman. But I keep getting the error: error: you cannot perform this ...
3
votes
2answers
685 views

Start Vim as my user with root privileges

I have my custom Vim files in ~/.vim and settings in ~/.vimrc. However, sometimes I have to edit some files in /etc and such. If I start Vim like this: $ sudo vim /etc/rc.conf I lose my config ...
4
votes
1answer
2k views

GNU Screen does not work when su'ing from root to a normal user

Is it normal, that when I am logged in as root, and the used su user, I can't access that users screen sessions? In this case, screen complains about it not having permissions on /dev/pts/x. I ...
22
votes
1answer
2k views

Why can't root execute when executable bits are not set?

root user can write to a file even if its write permissions are not set. root user can read a file even if its read permissions are not set. root user can cd into a directory even if its execute ...
2
votes
2answers
459 views

Gaining root privileges in SCO

I am learning Linux for work, so am still a bit rusty on the edges. I need to change the folder permission of the directory /opt, and I know in Linux, you do the following: chmod 775 /opt I get a ...
1
vote
1answer
1k views

exclude commands from user's sudo permissions

Consider the following line in a /etc/sudoers file: username ALL=(ALL) ALL, !/usr/bin/passwd as far as I know, this allows user username to use sudo, unless he not uses /usr/bin/passwd. But ...
6
votes
2answers
9k views

Unable to delete file, even as root

I've got a file on remote machine (saying that, cause I don't know who the heck created it), that I've to remove. user@machine:~/folder$ ls lift_proto.db.lock.db And permissions are like this: ...
4
votes
2answers
160 views

System files with strict permissions

Usually, when we run ls -l we can see such picture -rwx...- so the owner always has the full stack of permissions. And usually the owner of the system files is the root. Are there any system files ...
3
votes
1answer
167 views

How do I stop Apache from running as root?

New on the job, small place, and the security stuff just landed on my desk. I was hired to be a front-end developer. Happy to learn new things, but never had to do sysadmin stuff before. I started ...
9
votes
1answer
6k views

Unable to delete file, even when running as root

I am in the process of migrating a machine from RHEL 4 to 5. Rather than actually do an upgrade we have created a new VM (both machines are in a cloud) and I am in the process of copying across data ...
1
vote
2answers
80 views

How can I install programming tools in the root directory so that they can be used by non-admin users?

I'm running OS X and for security reasons my main account does not have admin privileges. How can I install development tools in the root directory so that they can be used by all users? If this can't ...
3
votes
2answers
347 views

Permissions of webserver's root directory

I've had this issue on several setups, and I'm unsure of how to handle it. At first, all of /var is owned by root:root. Clearly I don't want the web directory to be owned by root, so I do chown ...
6
votes
3answers
10k views

How to get back sudo on Ubuntu?

I have done this: sudo chown -R myname /usr/ and now I can't use the sudo command because of this error: sudo: must be setuid root And as I read this means that the owner of this file ...
11
votes
2answers
6k views

What is the difference between 'su -' and 'su root'? [duplicate]

Possible Duplicate: Why do we use su - and not just su? I understand that root doesn't have to be a superuser. But in the case that it is ... what is the difference between sudo su - and ...
4
votes
3answers
276 views

Give a warning when something is about to be deleted (by root)

I know that root can do anything, but is there a way to at least alert root that they are about to delete a folder that perhaps shouldn't be deleted? We keep a work directory in our /tmp folder, and ...