![]() It does not matter if the other user is root, or some other user account. However, every time I try to switch users using sudo su, after entering my password (instantaneously), it takes several minutes before succeeding. If I then try to delete the now empty aggregated folder, rm -rf aggregated just sits there. I can log in to my own user account fine. I found that I could delete everything if I cd into the folder and do rm -rf *. The entry in /etc/mtab is: /dev/mapper/luks-04638d71-b455-4a87-b0fa-8f0b8d96f97b /media/myuser/toshiba ext4 rw,nosuid,nodev,relatime,data=ordered 0 0 Whether it's old, dead servers listed in /etc/nf or a misconfigured firewall that's blocking port 53 outbound or something else entirely, I have always found that dig is slow when sudo echo foo is slow. Check the system logs to see if anything is logged (look for log entries dating from the time of the authentication). Whenever I have seen sudo being exceptionally slow, it has always been DNS that is at fault. It is almost brand new - have been using it from time to time for less than 1 year and so far haven't had issues with it and I don't believe is a drive problem. As a general way to investigate a slow authentication, check /etc/pam.conf and /etc/pam.d/su (and /etc/pam.d/sshd etc.) to see what kind of authentication the login services perform. Something like: sudo -disable-timeout Now I should be able to run sudo in the current shell, without ever. ![]() However, when I expect that a command that uses sudo will take a long time, I would like to be able to disable sudo timing out for the current shell only. The machine is otherwise not busy and has plenty of CPU and RAM resources. I don't want to disable the sudo timeout altogether, since it's there for a reason. Is there a way to debug, why does switching to root take a lot of time I believe, that there is some script which is performed just after switching and consumes this time, but I can't find path to this. ![]() (su - root) However, switching to any another user takes less than 1 second. I have so far not been able to successfully delete the drive. I have a system (RHEL) and switching to root takes about 1 minute. The main disk drive of the machine is SSD. This is on an external 2.5 HDD connected via USB3. I've tried deleting aggregated via rm -rf aggregated and it is taking hours. With pv installed, lets assume you want to clone a 20GB drive, /dev/foo, to another drive (20GB or larger), /dev/baz: sudo dd if/dev/foo bs4M pv -s 20G sudo dd of/dev/baz bs4M. ![]() aggregated/ in which I have 7550 sub-dirs each containing 250 files. In the future, you should use pv to get a running progress bar. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |