LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-03-2018, 10:14 PM   #16
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Some advice needed after having installed Slackware 14.2


Edit: sorry for somewhat off topic, but this is the second time this week that this has come up. I would like to know the proper way to use sudo on Slackware if I am wrong.

You can use sudo as long as you execute each command in a login shell. However, not all commands can be launched in a login shell with sudo using the -i option. As an example a limited user can run slackpkg or sbopkg like so:

Code:
sudo -i slackpkg update
sudo -i slackpkg install-new
sudo -i slackpkg upgrade-all
or
sudo -i sbopkg -i packagename
etc
At least this is how I understand sudo for Slackware. I use sudo like this all the time. However, as another example, Slackbuilds should always be ran from a login shell as root. I am interested to know if this is accurate.

Last edited by mralk3; 11-03-2018 at 10:16 PM.
 
Old 11-03-2018, 10:18 PM   #17
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by gregors View Post
Why not?

Regards,

Gregor

PS: Unfortunately 3sat is the station that tells me to use Flash :-/

see http://gregor.szaktilla.de/shot.jpg
Because you'll need root's environment for those operations, most importantly its complete path ($PATH) - see /etc/profile for the definitions.
&
https://docs.slackware.com/slackware...ation_overview

Re-P.S. You're right, same here with drei-sat, looks like it needs Flash. I'm not using Flash at all, mainly due to its security issues, and I'm not versed with it, but you could try what AlienBoB prepared:
http://www.slackware.com/~alien/slac...player-plugin/
 
Old 11-03-2018, 10:23 PM   #18
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@gregors & @mralk3
- check this recent discussion about sudo (don't mind my mistake with sudo (corrected by bassmadrigal), haven't used it for ages and also don't plan to in the near future - thus, my brain just dropped all the useless knowledge about it )

https://www.linuxquestions.org/quest...es-4175639472/

Last edited by abga; 11-03-2018 at 10:25 PM. Reason: typo
 
Old 11-03-2018, 10:38 PM   #19
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by abga View Post
@gregors & @mralk3
- check this recent discussion about sudo (don't mind my mistake with sudo (corrected by bassmadrigal), haven't used it for ages and also don't plan to in the near future - thus, my brain just dropped all the useless knowledge about it )

https://www.linuxquestions.org/quest...es-4175639472/
Thanks! I usually set my path in .bashrc which I guess accomplishes the same thing as setting it in /etc/sudoers via visudo. I will modify my settings appropriately.

_end off-topic_
 
1 members found this post helpful.
Old 11-04-2018, 12:12 AM   #20
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by rkelsen View Post
Interesting. Is systemd mandatory in Debian? I seem to recall reading something about it not being mandatory, and that you could still choose to install SysVinit.
Unfortunately it's not that simple. The way Debian's package management system works, as soon as it needs to install a package which depends on systemd (and it might be a package unintentionally installed as a dependency of another package), it pulls in systemd and converts the system over to using it.

This makes using Debian without systemd prohibitively difficult.

The better alternatives are to use Devuan (which is Debian with package dependencies redone to avoid systemd) or another of the seventy or so distributions which don't use it.
 
3 members found this post helpful.
Old 11-04-2018, 03:19 AM   #21
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Hello/Hallo/Salut,

Quote:
Originally Posted by abga View Post
1. This LQ forum is the best one to stay in touch with the Slack community, only use English, otherwise you'll maybe get banned
You could also visit this forum in German. Salix being a derivative of Slackware some questions can be answered here. Bear in mind though that Salix does not ship all Slackware packages, and only one desktop.
Quote:
6. As you come from Debian, I'd like to point out that under Slackware you always need to be root ( su - ) if you're performing administrative tasks, never use sudo.
I recently installed Debian Buster in a VM. I was given the choice of setting a password for root or using sudo during installation. I chose the former and use su -.

Last edited by Didier Spaier; 11-04-2018 at 03:22 AM.
 
1 members found this post helpful.
Old 11-04-2018, 07:30 AM   #22
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by Didier Spaier View Post
I recently installed Debian Buster in a VM. I was given the choice of setting a password for root or using sudo during installation. I chose the former and use su -.
For my entire first week of learning Debian I was root, I didn't even have a user account. This was due to my lack of knowledge, but I didn't screw anything up. In retrospect, it would have been entirely possible, and advisable, just to use su - on my user account.
 
Old 11-04-2018, 05:19 PM   #23
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
Quote:
Originally Posted by gregors View Post
3sat is the station that tells me to use Flash :-/
Send them a bug report. Tell them it's almost 2019 so it's about time to switch to HTML5.
 
  


Reply



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
Slackware as host, Ubuntu as guest - advice needed lupe Linux - Virtualization and Cloud 5 03-18-2014 05:47 PM
Slackware Mail Server advice needed please. Lintoon Slackware 12 09-09-2005 05:57 PM
Slackware Guru Advice Needed g452 Slackware 20 04-07-2004 12:32 PM
Slackware - Advice Needed Rjf90 Slackware 7 12-15-2002 09:06 PM

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

All times are GMT -5. The time now is 03:10 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