Questions tagged [root]

root is the default administrative account for Unix-based systems. It is comparable to the Administrator account of a Windows system.

root is the default administrative account for Unix-based systems. It is comparable to the Administrator account of a Windows system.

548 questions
7
votes
1 answer

Changing non-root user passwords from root (if you don't know the old password?)

Hey, so I created a user, and he has been sshing in and doing a lot of stuff, but he forgot his password - is there any way for me to change his password without knowing it?
caeasy
  • 199
  • 1
  • 5
7
votes
2 answers

Debian: how to create a user with root privileges (sudo)

How do I create a user with root privileges in Debian? Maybe it sounds a bit silly, but I don't think I need user directories, only some rights to run services (mainly web server, mysql, etc.). I just don't want to run everything under root…
user38484
  • 313
  • 2
  • 5
  • 10
7
votes
5 answers

Why would sshd allow root logins by default?

I'm currently working on hardening my servers against hacking- amongst other things, i'm getting a load of attempts to log on as root over ssh. While i've implemented fail2ban, i'm wondering, why root logons would be allowed by default to start…
Journeyman Geek
  • 6,977
  • 3
  • 32
  • 50
7
votes
2 answers

What is the difference between `su` and `su -` in CentOS?

I tried to switch to 'root' in CentOS by running su. It does change to 'root', but it doesn't seem to be a real 'root' user. For example, by default, ifconfig command in /sbin is not found in the path for a normal user, but for 'root', the command…
PJ.
  • 3,017
  • 5
  • 21
  • 15
6
votes
6 answers

Regular user using ports below 1024

Is there a way on Linux (CentOS if that matters) to enable regular users to use ports below 1024? (open listening TCP socket on that port) Currently I understand that only root has privileges to use those ports.
user25897
6
votes
2 answers

Start PHP-FPM with root option automatically

I was trying to get PHP-FPM running a pool as root, but I can't seem to adjust the init.d startup params. It works when starting PHP-FPM from the CLI (with sudo php-fpm7.0 -DRy /etc/php/7.0/fpm/php-fpm.conf, but I can't get this to work with the…
redelschaap
  • 235
  • 1
  • 3
  • 14
6
votes
6 answers

Preserve ownership with rsync, without root

I would like to perform incremental backups (for the entire filesystem) from a machine. rsync does this quite will, however I would like to also preserve file ownership - meaning, make it possible to restore it. Is this possible to do without…
Vladimir Panteleev
  • 1,737
  • 5
  • 20
  • 34
6
votes
3 answers

How to btrfs check a root partition

I'm sure the reason I'm having a brain fart is because it's late, but how can I go about performing a btrfs check on the root partition? The device needs to be unmounted, which can't happen because it's the root partition... Thanks
Dave
  • 61
  • 1
  • 2
6
votes
3 answers

Permission denied for root to change inotify max_user_watches, how solve this?

As root in a CentOs 6.4 server I got this error in an application: Fri May 16 01:45:23 2014 Error: Terminating since out of inotify watches. Consider increasing /proc/sys/fs/inotify/max_user_watches But when I try to run the command as root I got…
Samuel G. P.
  • 399
  • 2
  • 3
  • 10
6
votes
2 answers

I have WHM root access but unable to connect using SSH

I have root WHM password for a domain and I am able to login using following URL http://domain_name/whm But when I use the same root password to connect to server using SSH I get access denied message. How can I solve this issue? I want to login…
Ali
  • 251
  • 1
  • 2
  • 9
6
votes
1 answer

Linux :: Shared aliases in /etc/profile.d not applied to root user, why?

On my Fedora 14 developer machine I can add a sharedAliases.sh file to /etc/profile.d -- both my user and root user then have access to the shared aliases. Switch over to remote CentOS 5.7 machine and what appears to be the exact same config, no…
virtualeyes
  • 675
  • 3
  • 12
  • 28
6
votes
3 answers

Linux: Send email to another address instead of /var/spool/mail/root

I manage a micro linux server on Amazon EC2. Occasionally I get email sent to the root account and if I'm logged in, I'll get the notice: You have new mail in /var/spool/mail/root How do I get these emails sent to another email address (like…
Dan Esparza
  • 226
  • 2
  • 4
  • 13
5
votes
4 answers

ubuntu - how can I avoid typing a password on every admin action?

I just set-up ubuntu 9.10 on my computer, and I'm trying to figure out how to avoid typing a password on every action that requires sudo privileges. I just want to type a password once on login and have all rights throughout my session. Also, I'd…
sa125
  • 325
  • 1
  • 7
  • 14
5
votes
0 answers

Auditd in a PCI-DSS-compliant Linux cluster

I'm familiar with some of the more common ways of configuring a Linux server to be compliant with PCI-DSS 3.2, at least to the requirements of SAQ A. A common concern is requirement 8.5 which requires that: Generic user IDs and accounts are…
richard
  • 151
  • 3
5
votes
3 answers

Can I simulate an S3 bucket going down when it is accessible to root user?

I'm trying to test new network monitoring code for an application that runs on a Debian appliance. I am currently tasked with ensuring that an SNMP trap is thrown when external network shares (such as S3 buckets) are mounted with FUSE and the…
jajavoli
  • 53
  • 4