Hot answers tagged

5

Wow okay well have you considered just removing the user? userdel john As others have mentioned login as root over ssh is ill advised and so is having duplicate uid's of 0.


4

The command is sudo. Add a line such as below into /etc/sudoers sigis ALL=(ALL) NOPASSWD: ALL This means user sigis can now run things like the command below without requiring password. sudo shutdown -h now


3

The problem you are having is not a sudo problem, but a root permission problem. The filesystem that has hduser's home directory is not local to the machine and doesn't grant root permission to it. So when you did su - hduser you automatically changed to that directory, so sudo ls tried to run the ls command as root and that is where the error came from. ...


2

The usual way would be to save the value at the change of month, and calculate differences against that value. That way you could easily, say count values over more than a single interval, and also make it possible to use a single data source with multiple independent consumers, without them stepping on each other's numbers. Besides, zeroing the counter ...


2

The file manipulation operations you are performing might not be working, because files in /proc are not really true files in the common sense, but virtual files that provide a 'window'/interface to variables in the linux kernel. The only way to reset the interface counters is by unloading and loading again the corresponding interface kernel module. To ...


2

When you build an RPM you are effectively running "untrusted code". The problem is that a badly written application might try to write content into system directories (e.g. /bin or /usr/bin) during the compile/build process. This could just be due to buggy code or a mistake in the options passed. If you are running as a non-root user then this will fail ...


2

As root edit /etc/sudoers and place the following line: youruser ALL=(ALL) NOPASSWD:ALL after # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL In this way you will be capable to execute all commands that require sudo privileges passwordless. In order to use sudo and be prompted for a password you need to remove ...



Only top voted, non community-wiki answers of a minimum length are eligible