原文地址:[url]http://www.blackmoreops.com/2015/11/02/fixing-vlc-is-not-supposed-to-be-run-as-root-sorry-error/[/url]
[quote]apt-get install vlc
cp /usr/bin/vlc /usr/bin/vlc-backup[/quote]
使用hexeditor编辑vlc
[quote]hexeditor /usr/bin/vlc[/quote]
[quote]ctrl+w,选择search for text string,回车[/quote]
[img]http://dl2.iteye.com/upload/attachment/0113/4459/0f8dce43-f29d-3a94-b0d1-f3ec6836160e.jpg[/img]
[quote]输入geteuid [/quote]
[img]http://dl2.iteye.com/upload/attachment/0113/4461/91427462-751d-3b89-a248-2ce384b70099.jpg[/img]
[quote]按tab健,可以把hexeditor切换到ascii格式
geteuid 替换为getppi[/quote]d
[img]http://dl2.iteye.com/upload/attachment/0113/4463/e801d6c4-6d8f-34d1-8b2e-9b8bcaca09f5.jpg[/img]
[quote]ctrl+x保存退出
[/quote]
[quote]apt-get install vlc
cp /usr/bin/vlc /usr/bin/vlc-backup[/quote]
使用hexeditor编辑vlc
[quote]hexeditor /usr/bin/vlc[/quote]
[quote]ctrl+w,选择search for text string,回车[/quote]
[img]http://dl2.iteye.com/upload/attachment/0113/4459/0f8dce43-f29d-3a94-b0d1-f3ec6836160e.jpg[/img]
[quote]输入geteuid [/quote]
[img]http://dl2.iteye.com/upload/attachment/0113/4461/91427462-751d-3b89-a248-2ce384b70099.jpg[/img]
[quote]按tab健,可以把hexeditor切换到ascii格式
geteuid 替换为getppi[/quote]d
[img]http://dl2.iteye.com/upload/attachment/0113/4463/e801d6c4-6d8f-34d1-8b2e-9b8bcaca09f5.jpg[/img]
[quote]ctrl+x保存退出
[/quote]