LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-18-2017, 12:44 PM   #31
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247

Quote:
Originally Posted by dive View Post
I had a 4 hour recording of rain and thunder filched from youtube. Bliss! I recommend it.

Well if you find any let me know. There may be something on that tunein website, but I haven't had time to explore it all yet.
Thanks for recommendation, and if I will find something on theme I will show you it.
 
Old 12-18-2017, 12:46 PM   #32
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
sed -i 's/exit 1/#exit 1/' soma
 
Old 12-18-2017, 12:48 PM   #33
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Thanks, I already made that manually.

BUT, the change will be lost in the first update...

BTW, SOMA works fine as root.

And a last suggestion, this time aesthetically: how about to clear the console on exit?

Last edited by Darth Vader; 12-18-2017 at 01:01 PM.
 
Old 12-18-2017, 01:04 PM   #34
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
Can do. I'll add it next update.
 
Old 12-18-2017, 01:05 PM   #35
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by dive View Post
Can do. I'll add it next update.
Thanks!

And how about instead of an unceremonious exit for the root user, to use an confirmation dialog like "You are sure you want to do that?"

Leave to the user to accept the consequences.

Last edited by Darth Vader; 12-18-2017 at 01:26 PM.
 
Old 12-18-2017, 01:41 PM   #36
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
Optional though.
 
Old 12-18-2017, 02:21 PM   #37
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sunta View Post
dive, what terminal are you testing soma on?
Ah. When I am logged into my VM I am using Terminator to ssh from, so that makes a difference I expect.

But I did test uxterm and it all looked ok.
 
Old 12-18-2017, 02:25 PM   #38
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by dive View Post
Optional though.
Yep, showing to user at least a confirmation dialog is just about giving him the ability to chose, without babysitting him.

And after all, now after I read the SOMA's source code (as it is a script), I think that there are no security issues other than the ones introduced eventually by MPlayer itself.

BUT, its graphical interface, the GMPlayer can run well as root, with no warnings and bells, then if the MPlayer developers themselves are not so preoccupied by running their software as root, and MPlayer is officially shipped by Slackware, how about to leave the responsibility about the MPlayer issues just to those in measure and with interests about MPlayer security?

That's the delegation of the responsibility.

Long story short, what SOMA do, the user can do under root also with the pure MPlayer, the GMPlayer, or even clients like SMPlayer, for example.

So, the SOMA will introduce no additional security when it commit suicide as root even the user does not edit its forced exit.

Last edited by Darth Vader; 12-18-2017 at 02:33 PM.
 
Old 12-18-2017, 02:34 PM   #39
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
I see your point. I'm just worried that something hideous will go wrong. Mistakes have been known to have been made in software before. See the purge_local function and think what fun could be had if the directories were -z or / or something.

I'm not thinking of a confirmation really for the clear screen, more a config option. Set by checkbox in the options menu.
 
1 members found this post helpful.
Old 12-18-2017, 02:58 PM   #40
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by dive View Post
I see your point. I'm just worried that something hideous will go wrong. Mistakes have been known to have been made in software before. See the purge_local function and think what fun could be had if the directories were -z or / or something.

I'm not thinking of a confirmation really for the clear screen, more a config option. Set by checkbox in the options menu.
I understand your position, but I think that nothing bad will/could happen, if you ensure that the "to be deleted" files would live in folders precisely named ".soma/genres" or ".soma/themes", even by mistake the SOMA looks to delete them directly from "/.soma/genres" or "/.soma/themes", which usually should not exists.

IF I will be worried about that particular problem, I would strongly ensure those path names conditions I said. I done many times in the past those things, under PHP, BTW...

Last edited by Darth Vader; 12-18-2017 at 05:12 PM.
 
Old 12-18-2017, 03:03 PM   #41
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
Why do you want to run it as root anyway? Just stop!
 
1 members found this post helpful.
Old 12-18-2017, 03:05 PM   #42
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Sorry if I made you angry, was just an theoretical POV and comments about your own app.

Or, you do not like someone to discuss its design?

Last edited by Darth Vader; 12-18-2017 at 03:07 PM.
 
Old 12-18-2017, 04:08 PM   #43
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by dive View Post
Why do you want to run it as root anyway? Just stop!
Haha... you could add some option to bypass your root check. That way it's a nice reminder for those who may run as root without knowing why it's bad, but allows those who are aware of the consequences to be able to bypass it if needed/desired.
 
2 members found this post helpful.
Old 12-19-2017, 10:43 AM   #44
timepasses
LQ Newbie
 
Registered: Dec 2017
Posts: 20

Rep: Reputation: Disabled
dive, soma doesn't work with 13.37. What versions of Slackware do you support?
 
Old 12-19-2017, 10:55 AM   #45
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
I've only tested it on 14.2 and -current. I don't have a 13.37 box to test with.
 
  


Reply

Tags
internet, radio, soma, stations



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
[ANN] Soma 2.13.0 dive Slackware 12 12-17-2017 07:06 PM
[ANN] Soma 2.10.6 dive Slackware 0 01-23-2016 12:48 AM
[ANN] Soma 2.8.1 dive Slackware 2 01-26-2012 01:55 AM
[ANN] Soma 2.7.5 dive Slackware 1 11-06-2011 08:06 PM
[ANN] Soma 2.7.1 dive Slackware 8 08-27-2011 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:16 AM.

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