LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11:14 PM   #16
mralk3
Senior Member
 
Registered: May 2015
Location: Utah, USA
Distribution: Slackware 14.2 || Slackware-current && CentOS
Posts: 1,318

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
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 11:16 PM.
 
Old 11-03-2018, 11:18 PM   #17
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 721

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
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, 11:23 PM   #18
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 721

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
@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 11:25 PM. Reason: typo
 
Old 11-03-2018, 11:38 PM   #19
mralk3
Senior Member
 
Registered: May 2015
Location: Utah, USA
Distribution: Slackware 14.2 || Slackware-current && CentOS
Posts: 1,318

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
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, 01:12 AM   #20
ttk
Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 732
Blog Entries: 25

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
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, 04:19 AM   #21
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,587

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 04:22 AM.
 
1 members found this post helpful.
Old 11-04-2018, 08:30 AM   #22
Lysander666
Member
 
Registered: Apr 2017
Location: London
Distribution: Slackware 14.2 + Xfce
Posts: 788
Blog Entries: 1

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
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, 06:19 PM   #23
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 245

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:47 PM
Slackware Mail Server advice needed please. Lintoon Slackware 12 09-09-2005 06:57 PM
Slackware Guru Advice Needed g452 Slackware 20 04-07-2004 01:32 PM
Slackware - Advice Needed Rjf90 Slackware 7 12-15-2002 10:06 PM

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

All times are GMT -5. The time now is 12:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration