0
votes
1answer
15 views

Grant Ubuntu root permissions to ldap user

I have a development Ubuntu machine attached to our corporate domain. I have root permissions on this machine, however my ldap account does not. I would like to grant my ldap user unrestricted local ...
0
votes
0answers
21 views

Can't write files using new user on Linux Ubuntu via SSH

So I just added a user to my server, let's call it "user2", when I tried uploading a file via Filezilla while logged in to "user2" I got the error open for write: permission denied, so I assume ...
0
votes
3answers
25 views

Access User Desktop Files While Using Root

I'm really new ubuntu user... I'm working as root user (the software that I'm using just works if you are root user) but the files that I need to access are on my normal user desktop. I don't how to ...
0
votes
0answers
51 views

Can't sudo when logged in with ssh

I set up a ubuntu machine on my local server. I've got a user with sudo privileges (same password as for login). I've got passwordless ssh going by putting my rsa public key on the ubuntu machine. So ...
0
votes
1answer
68 views

Regain access to Ubuntu server

I did a stupid mistake on my Ubuntu virtual server (Amazon). I was messing around with /etc/passwd & /etc/group files and i am about to lock my self out of the server for good. I have a copy of ...
0
votes
1answer
87 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 ...
1
vote
0answers
46 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
21 views

Resize Primary Partition in Ubuntu

I've set up a Ubuntu server the wrong way round. On a 2TB hard drive I gave 20GB to the root system partition and 1.8TB to home. I'd like to reverse this. I'm reading there is a tool, which may be ...
0
votes
0answers
49 views

How to run Wireshark on desktop computer with tablet display manager (Ubuntu 12.04, x64)?

I'm running Ubuntu 12.04 (x64). I installed Wireshark with apt-get. When I go to Ubuntu Button -> Search "Wireshark" -> Wireshark, the wireshark program launches. Unfortunately there's no interfaces ...
0
votes
0answers
66 views

Run a specific program with root privilges without asking for password everytime

Many times, i need to connect modem using SAKIS-3G script and because modem-manager sucks many times. I need to supply admin/root password, everytime i need to run sakis-3g script. I am the only ...
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, ...
0
votes
1answer
574 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 ...
3
votes
4answers
319 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 ...
0
votes
0answers
30 views

Cannot login to server after file permissions change [duplicate]

I am using Ubuntu server. I ran: chmod -R 700 / when I was logged in as root. Now when I try to login as my normal user I immediately get kicked out. Is there anyway to log back in to the server ...
0
votes
2answers
2k 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
1answer
1k views

Reset root password of a VM

I removed (distrattament) my "sudo" user from sudo group user, I can't use root because I don't know a password for root. I have an Ubuntu virtual machine and when I open Recovery Menu is limited ...
0
votes
1answer
237 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
3answers
635 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 ...
0
votes
1answer
286 views

Difference between su command for Fedora and Ubuntu?

To log in as root while using Fedora I use : su and then enter the password. But while using Ubuntu this fails even if I use the correct password. But if I enter: su -s and then enter the ...
0
votes
2answers
737 views

Execute a root command every 24 hours after startup

I want to execute a command as root on an Ubuntu 11.04 machine every 24 hours. This machine is not on all of the time, but when it is, it can be left on for days at a time. How should I correctly ...
3
votes
2answers
391 views

Renamed root in /etc/passwd and now sudo does not work

I accidentally modified the line for root in /etc/passwd and changed its named. To fix it I tried using sudo to modify this file, but it does not let me sudo because sudo can't find the root user ...
0
votes
2answers
257 views

In Ubuntu 12.04.1 LTS is it safe to ignore the existence of “root”?

I'm not sure I'm even asking the question right, but basically what I'm wondering is whether it is safe to go about using the user that the install wizard had me create, and disregard the existence of ...
0
votes
1answer
279 views

How do I login to a preinstalled Ubuntu file system archive?

I installed a preinstalled ubuntu 12.04 desktop root fs archive on SD card and booting it on my new Chrome book. I was able to boot and see the Ubuntu Login screen and able to login as guest. But how ...
1
vote
2answers
907 views

boot as superuser (root) in ubuntu 12.04 server

I try to realize a multisensor system (without Display or keyboard) which needs sudo rights directly after bootup (Ubuntu 12.04 server for ARM). Therefore, I would like to automatically login as root. ...
0
votes
2answers
266 views

Linux and the Mysterious Case of Vanishing (and Reappearing) Directories

I've set up my very first Ubuntu server and immediately logged in (as myuser) to begin customizing it. I go to /opt and run mkdir sandbox. mkdir: Cannot create directory 'sandbox' : Permission ...
3
votes
2answers
3k views

Any way to use sftp as superuser?

I'm using Transmit.app (in Mac) to sftp to my Ubuntu server. Is there any way to gain superuser permission so that I can remotely write any file?
0
votes
2answers
2k views

linux root unable to create directory

server = Ubuntu 11.04 login as a root, able to create directory, copy file previously few weeks ago, but now try to create directory but failed mkdir abc mkdir: cannot create directory `abc': ...
10
votes
2answers
13k views

Can I make a script always execute as root?

How to make a script execute as root, no matter who executes it? I read about setuid but I'm not sure how to do this. I'm using Linux, Ubuntu 12.04 LTS.
0
votes
1answer
85 views

Why isn't it possible to access the root account directly in Fedora?

Why isn't it possible to access the root account directly in Fedora? In CentOS and Ubuntu we can access it, but why not in Fedora? What is the security reason for this?
0
votes
1answer
470 views

Error resetting root password “Token Authentication error”

I am running Ubuntu 12.04 LTS, though this issue existed before I upgraded. I am the first user on my system so my password is the default for root but when I try to su to root it won't accept my ...
1
vote
1answer
163 views

sudo not working alongwith su

I am using a Ubuntu system. Today, I accidentally changed the sudoers file in /etc due to which my normal user prathmesh is not able to perform sudo operation. I don't know how to go to the root mode. ...
1
vote
2answers
942 views

How can I automate a root command after (not during) startup?

I'm using Ubuntu 12.04 LTS, but I need to run the following command: sudo dhclient after startup to acquire a stable ethernet connection. I am running dhclient during startup already, through the ...
1
vote
1answer
2k views

Command to create a file owned by another user

I created a directory test owned by the root user, and then I created a file called F1 inside test , now I need to create a file called T5 inside test but by a user called student What is the ...
3
votes
4answers
5k views

How to determine the user and group of a deamon in Ubuntu?

How can I check the user and group for the nginx daemon in Ubuntu? Or what's the syntax to find the user and group for a deamon running in Ubuntu?
2
votes
3answers
7k views

I created an Ubuntu server. Do I have a “root” user?

I always thought "root" was a default user created when you install basically any Linux. During installation, it asked me to choose a username, so I picked "devadmin". Is that my "root" user now?
2
votes
3answers
4k views

chown -R root.root /

So I was working and there was a directory that I was periodically changing to my user in a root terminal so that I could open the files in text editors, but I accidentally pressed / instead of . and ...
1
vote
1answer
405 views

Can I tell if Root / Sudo has been used/accessed

Would it be possible to check if the root user (or sudo) has been accessed on my server. I ask this because I am creating a server monitoring tool and I wanted to know if there was a way to check ...
2
votes
1answer
92 views

Missing something from Security 101 - No Sudo -> Boot to Recovery -> Add to admin -> Voila?

May be this is a silly question but yesterday I found myself struggling to execute the sudo command because apparently I was taken off the list on my own machine for some reason. What I did was to ...
2
votes
2answers
3k views

Why does Linux Ubuntu/Mint lack a root account?

This is a question about Linux Ubuntu (and Mint). As a new user to the Linux system, I was interested in the fact that Ubuntu doesn't allow the PC owner to be root/administrator. Regardless of whether ...
33
votes
2answers
29k views

Can I create an SSH user which can access only certain directory?

I have a Virtual Private Server which I can connect to using SSH with my root account, being able to execute any linux command and access all the disk area, obviously. I would like to create another ...
2
votes
2answers
4k views

How do I go into root and have it change my prompt?

I am using ubuntu-10.04 and bash. I want to go into root and have it change my prompt to underlined red characters to reflect that I am in root. At the bash prompt, if I type: $ sudo bash then I go ...
0
votes
3answers
484 views

All users - root. Ubuntu

i would like to set all users to be root. How can i do it? I am using ubuntu.
0
votes
1answer
229 views

Ubuntu root privs installation issue

I am a fairly new Ubuntu user (and Linux user, for that matter) and I just downloaded a program whose installer was a .sh file. Not thinking, I copied the installer to an /opt subdirectory, thinking ...
3
votes
3answers
20k views

Set password for root on virtualbox ubuntu

I loaded ubuntu into virtualbox. It all works well but it occurred to me that I was not asked (or did not setup) a root password. I want to use root on occasion, but I cannot seem to find out how to ...
1
vote
1answer
847 views

Cannot change Ubuntu root password

I've tried to use this to change my Ubuntu 10.04 password sudo passwd The process goes fine, I type the new password and the get the message on successfull completion. However, nothing actually ...
1
vote
2answers
409 views

Cannot login as super user anymore

I have an issue with login as root with in ubuntu. I've mistakely assigning my user to a group as primary group and it is not anymore in sudoers. Consequently I cannot use "sudo" anymore. I tried to ...
1
vote
3answers
5k views

LINUX : How to Log in as Root (Ubuntu 10.04)

I want to use the whole operating system as an administrator. I know I can log in as a root in the Terminal by typing this: su Password But in this way I'm logged in only in the terminal. I want ...
2
votes
5answers
857 views

How could my Ubuntu root password change without my knowledge and how do I regain control?

Lo and behold, I log into my machine today, as every day, su root and it doesn't accept my root password any more. How could that possibly happen, assuming I didn't sleepwalk over to my machine during ...
0
votes
2answers
634 views

Used recursive chown on the root directory

Im gonna need some help restoring my ssh settings as i screwed everything up by calling this command: chown -R user / At the moment im not able to access the site through ssh/ftp since the ...