Skip to content
Advertisement

Tag: root

Cannot access to mysql 8.0 after change root password

I have mysql 8.0 work under centos 7 minimal. I change the password using this command mysqladmin -u root -p’Pass-123***’ password Myp@$$123 . After this , i try to access to mysql via mysql -p but i cannot access with the new password. How i can do this ? Answer You changed the password commandline on Linux. In sh/bash/zsh the

Read /proc//fd/ without full root access

I have a program (https://github.com/raboof/connbeat) that relies on /proc/[pid]/fd/* to find processes given a (networking) inode. /proc/[pid]/fd can only be read by root, but I’d like to drop privileges as much as possible for security. Is there some way I could (efficiently) get to the relationship between processes and inodes without requiring full root rights? Perhaps some syscall that I

Execute root command with no root user avoiding password prompt

I have a script.sh file executing the following command: If i try to execute with a non-root user (username = marco), the prompt password halts the script waiting for the input. I’m trying to configure the /etc/sudoers file adding the following lines, but with none of them works and I’m always prompted for sudo password: Any clue? Thank you. Answer

Root autentication on a Python program

I have the root password saved in a variable. How I can give the root authorization at my program? This can be an example: Answer It is impossible to do it in the way you try. Your program is already started under some non-root user and you cannot change it inside this program. You can spawn other process which will

setuid(0) fails to execute for root owned program

I need to write some code which can gain root priveleges and execute system level operations. Here’s what I’ve written (this is not the actual code, just to test if I’m doing things correctly or not): After doing gcc -o setuid setuid.c, I run ls -al on this to get following results: Trying to run the application results in: I

Advertisement