1
vote
1answer
27 views

devmem: can't open '/dev/mem': Permission denied

I have 2 phones (Samsung Galaxy S4 LTE I9505, Android 4.4.2 Kitkat) which I already rooted and have root access to the phones. Previously, on my rooted Samsung Galaxy S3 LTE I9505 running Android ...
21
votes
5answers
1k views

Sudo vs root; any actual differences?

I'm working with a support member for a product, and he insists that I need to be root to install a series of patches, and that sudo won't work; he doesn't provide a reason but seems very firm in his ...
1
vote
1answer
40 views

Is it possible to run a program as a specific user but with root permissions?

I'm doing development with PyCharm, doing development on a script that uses the scapy module for Python to do port scans, sniff traffic, and build raw packets. This, of course, requires root ...
0
votes
2answers
45 views

Why my setting with NFS and setuid not working in Linux

I'm using Linux. On machine A I have such NFS setting in etc/exports: /home 10.0.129.130(rw,no_root_squash) I mount this directory on machine A on /home/nfs/ on machine B. And I've set setuid using ...
1
vote
3answers
61 views

How to detect if remote SSH session is root?

I know I can see the list of logged in users with w or similar commands. I want to know which of logged in users currently has root access, i.e. has done su to become root. The output of w just shows ...
0
votes
1answer
82 views

aireplay-ng command not found

I just downloaded and installed Kali Linux on my MacBook Pro (dual boot) to mess around with penetration testing - I have experience with aircrack-ng, but it was a while ago (and I was at least ...
0
votes
1answer
45 views

Entering Password in su- through loop

The Scenario is like I have a list of root passwords. But i don't want to keep trying Manually. So i wrote the shell script : for i in {1..26} do su - >>result done and all my ...
1
vote
1answer
41 views

Why does 'cd' not work on an entry with 'directory' attribute?

My OS is fedora 20. I act as a root user. under / directory, I input: #ll ... d????????? ? ? ? ? mnt ... #cd mnt bash: cd: mnt: Not a directory #chmod 777 mnt chmod: cannot access 'mnt': No such ...
0
votes
1answer
84 views

Fail to redirect log to /var/log/syslog

I have an upstart script that does the following start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec >/dev/kmsg 2>&1 REPO=git@github.com:blabla/bli ...
0
votes
0answers
25 views

program needs to be run as root by any user and can be located anywhere

I have some program called foo that needs root privileges when it executes. foo needs to be able to be run by any user and can be located at any path. The reason this program can be at any path is ...
1
vote
0answers
43 views

Linux Ubuntu System Error

After I have given myself the access rights for directory /usr and all its contents with sudo chown -R USER /usr my Ubuntu 12.04 System totally fails. E.g. Internetconnection is not possible ...
0
votes
1answer
695 views

lv root drive full, how to extend partition? (centos)

my lv_root drive is full, i believe its 50gigs, i could not find an option to extend it when i installed centos.. i have installed a second drive where I have my /var/www which mounted fine How ...
0
votes
2answers
56 views

One primary partition left: Root or home?

I have Windows running on two partitions of my computer. I am now planning to install crunchbang on the left space. Hence I have one primary and two logical partitions left if I want to have root, ...
0
votes
1answer
131 views

ext4fuse as non-root on FreeBSD10

I have 2 operating systems on my computer, a Arch Linux on a 100GB ext4 partition, a FreeBSD on a 250GB partition and all my data on 2 2TB separated ext4 disks. I wan't to access the files from this ...
0
votes
1answer
16 views

Can I have 'local root' accounts inside a VirtualBox guest OS?

Do you know if I can get a local 'root' inside a VirtualBox guest OS (Linux)? I need this to install the "guest extensions". Should this be the same as my "host" OS root?
2
votes
1answer
118 views

difference between root executing command as sudo vs not using sudo?

I have a Linux question regarding the sudo command and the root user. If I log into the root user using the su command, what is the difference between the following two commands? root> sudo ...
2
votes
2answers
65 views

Install postgres without apt-get

I have access to a machine on a scientific hpc, and I'm setting up an environemnt to create a web application, made up basically of TOMCAT and postgresql. I cannot use another web server. The OS is ...
0
votes
1answer
200 views

Synology root truecrypt over ssh?

I can not find the syntax to mount a remote volume with truecrypt / ssh . ssh -i /root/.ssh /id_rsa root@192.168.0.107 'truecrypt /home/rep.tc/home/dossier' but not work..... -------- SSH ...
0
votes
0answers
26 views

Mount more root folders on different partition

I want to mount several root folders on my 2GB SD card so that when the cord connecting my Mint hard drive falls loose, I won't have to reboot the system. I have already mounted /bin on the card. I ...
1
vote
1answer
29 views

Use X desktop apps using another users on my own account, like with root

It's possible run apps from command line like root using "su root" , and later executing the app, like firefox, and works, using the data from root home. But why I can't do it with another users using ...
0
votes
1answer
53 views

How to let any user without root change specific network(qdisc) settings?

I have made a simple router from a Linux PC, for the purpose of simulating poor network conditions using qdisc (netem and tbf). Now, I want to allow any user to activate specific presets that I have ...
9
votes
1answer
549 views

Debian - allow user to be root only for specific commands

We have several Linux boxes running Samba that are used 'locally', eg each branch gets their own Samba box to store and share files. The office managers need to be able to add and remove users for ...
0
votes
1answer
89 views

Why some files are read only for root by default?

In Linux systems, the root user has privileges to change permission for every file. Then what is the logic of some files having read only permission for the root user by default? File in concern: ...
3
votes
1answer
150 views

How does sudo actually work?

How is it possible for sudo to actually function? If it's just a normal program, couldn't you make the same thing without requiring the user to authenticate, giving anyone with access to a computer ...
0
votes
2answers
113 views

Using the root account on a single-user system [closed]

On Linux systems it is widely considered a best practice using the root account only on occasions that necessitate administrative privileges, or disabling it altogether and relying solely on sudo to ...
0
votes
0answers
83 views

Linux/Slackware 14.0 newbie: Why does flash player work only under root?

So I decided to install Slackware to start learning more on Linux. One thing that I have noticed, is that when I log in as root, the flash player works for sites like Youtube, it just pops up a ...
2
votes
1answer
958 views

sudo: must be setuid root

I rented a server (ubuntu 12.04). They gave me a root user account. Next, I went in and created a new user using: # adduser <newusername> And added a password. The new user account works ...
1
vote
6answers
2k views

recovery of password for root in Ubuntu 12.10

I installed Ubuntu 12.10 on my 32-bit machine using Ubuntu installer and gave a password(and the account name was 'samsung') when prompted. Later I was able to use that password for logging in, ...
1
vote
1answer
206 views

Developing and deploying application that will run as root using setuid?

I have an application that needs to run with root permissions. Using setuid bit on the application file seems like a logical choice. My understanding of setuid is that the files should be owned by ...
0
votes
2answers
241 views

Given I have root on and Android system and can access the shell, am I still restricted in what programs I can run?

Obviously, Android runs applications in sandboxed mode for security reasons, but if I have root and shell access on an Android device, can I then treat it as a regular linux distro, and run any ...
3
votes
2answers
523 views

How to install skype on CentOS without root access

So I'm trying to install Skype on my office computer which has CentOS6.4 and where I have no root access. http://www.skype.com/en/download-skype/skype-for-computer/ only offers binaries for Ubuntu, ...
0
votes
1answer
101 views

Create user with partial root permissions

Is there any way to create a user with partial root permissions on a GNU/Linux system? For example: A user who can use the useradd and userdel tools, but nothing else besides regular user ...
0
votes
1answer
530 views

How to add yourself to sudoers list?

I was trying to install a package using the command: sudo apt-get install ruby-rvm But I'm prompted with nish is not in the sudoers file. This incident will be reported. I tried to add myself ...
1
vote
3answers
156 views

Linux - Protection from ourselves (Root)

I love Linux and everything she stands for; however, unfortunately I grew up with Windows. Thusly so I have learned very bad practices (such as NT Authority will protect me). I have several Linux ...
2
votes
2answers
786 views

Why is the User created during linux installation not the root user? [closed]

Whilst I was installing Linux Mint... I created a user profile.. then after the installation was complete I tried installing NASM but after executing the make install command it failed to create ...
0
votes
1answer
203 views

Why do linux packages expect root permissions to install?

This is a question about the design choices of *nix, not how to avoid it. What is the purpose for requiring root access to install most packages? It seems like a potential security hole to require ...
-1
votes
1answer
229 views

Preventing execution of sudo rm -rf /*

Do any Linux distros prevent the execution of sudo rm -rf /* so that people do not accidentally delete their hard drives if they did not know what they are doing?
0
votes
0answers
75 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 ...
16
votes
2answers
4k views

Does the root account always have UID/GID 0?

On all the Linux systems I've managed, the root account has a GID and UID of 0. Is this guaranteed, or is it possible that the system will give root a different ID?
3
votes
3answers
286 views

Can we have a user with the same powers/priviliges as root?

I am confused on the following in linux. Can I have a user to have the same permissions as the root. In Windows any user can be the administrator but I am not clear exactly about this on Linux. It ...
3
votes
4answers
310 views

How to hide a code from myself until a specified time?

Essentially, what I need is some way to generate and store a random string (20 characters long, say) for some period of time, such that there is no way for me to recover the string until the end of ...
1
vote
1answer
98 views

Swap and Root: same partition

I have 3 partitions, and I can't delete any of them. (Recovery, SYSTEM, C:), and I need to install GNU/Linux. How can I have swap and root on the same partition?
0
votes
2answers
278 views

Deleted user and root account on debian

One of my colleague removed by error etc/passwd and etc/shadow files. The problem is that now the system doesn't have any account.Impossible to connect by ssh or to work on it. How can I create a ...
1
vote
0answers
326 views

permit root login red hat

I'm bit confused because I can't perform such an easy thing as permitting root login to the server (I'm using redhat). I changed PermitRootLogin from no to yes on the server's /etc/ssh/sshd_config and ...
0
votes
2answers
1k views

Can't change root password in Ubuntu

I am trying to change the root password in my Ubuntu system but I am getting an error. I disabled password prompt when calling sudo. So I can execute root commands (eg. sudo apt-get install) without ...
0
votes
3answers
93 views

What types of users can I use with “sudo”?

I thought you could only use sudo to temporarily become root: sudo vim /etc/resolv.conf But recently I saw a shell snippet depicting a user using sudo to become a specific user: sudo -H -u devops ...
0
votes
1answer
232 views

How to config sudoers file?

I'm using ubuntu server 12.04 LTS I want to know how to configure my sudoers file (obviously, using visudo), to permit an user to run commands like root (doing something like "sudo service x ...
1
vote
1answer
271 views

How to setup cPanel with multiple hard drives on dedicated server

I have a dedicated server with OVH for my website that has 2x2TB SATA3 hard drives. Currently I am using about 12GB with files and MySQL databases, however, an email notification I got from them told ...
1
vote
3answers
602 views

Lost root access possibility /sbin/nologin

I accidentally edited the file /etc/passwd on my server in the following way: root:x:0:0:root:/root:/sbin/nologin Now I cannot login as root. When I enter the su command, the following is ...
1
vote
1answer
2k views

turning off password expiration on linux

I see a lot document suggest to use chage on debian and ubuntu, apt-get update && apt-get install chage does not install the package, e.g. root@ubuntu:~/Desktop# apt-get install chage Reading ...