LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2016, 01:43 PM   #1
pdixit
LQ Newbie
 
Registered: Jul 2016
Distribution: Fedora 24
Posts: 15

Rep: Reputation: Disabled
vlc command is not working in root user


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.

Click image for larger version

Name:	Screenshot from 2016-08-05 00-02-23.png
Views:	43
Size:	180.8 KB
ID:	22662

My question is that why vlc command is not working in root user?
 
Old 08-04-2016, 02:16 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I think the message it displayed is self explanatory. You shouldn't be using root outside of system maintenance.
 
1 members found this post helpful.
Old 08-05-2016, 03:14 AM   #3
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
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.
 
2 members found this post helpful.
Old 08-05-2016, 11:53 AM   #4
pdixit
LQ Newbie
 
Registered: Jul 2016
Distribution: Fedora 24
Posts: 15

Original Poster
Rep: Reputation: Disabled
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?

Last edited by pdixit; 08-05-2016 at 11:55 AM.
 
Old 08-05-2016, 01:22 PM   #5
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
I suggest marking this solved and posting a new question.
 
Old 08-05-2016, 03:01 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by pdixit View Post
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 View Post
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
 
Old 08-05-2016, 05:03 PM   #7
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,254

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by pdixit View Post
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
.
 
1 members found this post helpful.
Old 08-05-2016, 05:43 PM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by pdixit View Post
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.
 
1 members found this post helpful.
  


Reply

Tags
linux command, root



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] User permitted to run command,execute program as root and after execution, exit root vjlxmi Linux - Newbie 12 04-17-2015 06:30 AM
VLC doesn't play DVDs as user, fine as root Chey Slackware 7 11-26-2012 09:39 AM
startx from root user is working while from sudo user not unkn(0)wn Linux - Newbie 2 08-17-2012 09:31 PM
VLC player not working in root login on Mint abhijitbanke Linux - Desktop 3 09-20-2010 11:45 AM
why lftp command run failed when user isn't root, but ok when logining as root steven_yu Linux - Software 0 06-06-2007 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration