Featured image of post Usar vlc como root

Usar vlc como root

Cuando ejecutas linux como root obtienes el siguiente resultado

Cuando ejecutas linux como root obtienes el siguiente resultado:

1
2
3
4
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use ./vlc2-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).

Para poder ejecutarlo con éxito es tan simple como abrir el binario de vlc con un editor hexadecimal y sustituir geteuid por getppid

ghex /usr/bin/vlc

buscar: geteuid

remplazar: getppid


Con python:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/usr/bin/env python
# -*- coding= utf-8 -*- #

nombre_fichero = 'vlc'


with open(nombre_fichero, 'rb') as f:
	s=f.read()

s=s.replace(b'geteuid', b'getppid')

with open(nombre_fichero, 'wb') as f:
	f.write(s)

Con bash: ```bash sed -i 's/geteuid/getppid/' /usr/bin/vlc ```

En caso de haber instalado vlc a través del tarball seria tan simple como recompilarlo pasando –enable-run-as-root a ./configure.

Fuentes: taringa

comments powered by Disqus
Esto es el footer
Creado con Hugo
Tema Stack diseñado por Jimmy