LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vlc command is not working in root user (https://www.linuxquestions.org/questions/linux-newbie-8/vlc-command-is-not-working-in-root-user-4175586287/)

pdixit 08-04-2016 01:43 PM

vlc command is not working in root user
 
1 Attachment(s)
I am using fedora 24. I install vlc. when i run vlc command in regular user, it works but in root user vlc is working.

Attachment 22662

My question is that why vlc command is not working in root user?

lazydog 08-04-2016 02:16 PM

I think the message it displayed is self explanatory. You shouldn't be using root outside of system maintenance.

aragorn2101 08-05-2016 03:14 AM

It is for security reasons. VLC usually tells you that it is not meant to be executed by root. Sometimes vlc is setup to download media information and things, so it is quite inappropriate to let vlc run with root privileges.

pdixit 08-05-2016 11:53 AM

So it means vlc is not the only command which is not running in root user. which types of applications are not running with root user? Please also tell me from where i can learn more about it?

erik2282 08-05-2016 01:22 PM

I suggest marking this solved and posting a new question.

ondoho 08-05-2016 03:01 PM

Quote:

Originally Posted by pdixit (Post 5586042)
I am using fedora 24. I install vlc. when i run vlc command in regular user, it works but in root user vlc is working.
My question is that why vlc command is not working in root user?

..and vlc has given you the answer:
Quote:

Originally Posted by vlc
VLC is not supposed to be run as root. Sorry

why even ask?



Quote:

Originally Posted by pdixit (Post 5586526)
So it means vlc is not the only command which is not running in root user. which types of applications are not running with root user?

ok, fair enough.
as a rule of thumb:
- graphical applications
- applications connecting to the network

zk1234 08-05-2016 05:03 PM

Quote:

Originally Posted by pdixit (Post 5586526)
So it means vlc is not the only command which is not running in root user. which types of applications are not running with root user? Please also tell me from where i can learn more about it?

If this is so important for you, you must compile VLC from sources. What you need is the following option:
Code:

./configure --enable-run-as-root
.

jpollard 08-05-2016 05:43 PM

Quote:

Originally Posted by pdixit (Post 5586526)
So it means vlc is not the only command which is not running in root user. which types of applications are not running with root user? Please also tell me from where i can learn more about it?

NO GUI applications should be run as root.

None of the GUI applications can be validated as "safe". There are a few that do use sudo for running some interface applications with connections to servers, but I don't believe these are actually GUI other than display/keyboard input - the actions are actually done by the servers, not the GUI application.


All times are GMT -5. The time now is 09:53 PM.