LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Some advice needed after having installed Slackware 14.2 (https://www.linuxquestions.org/questions/slackware-14/some-advice-needed-after-having-installed-slackware-14-2-a-4175641710/)

mralk3 11-03-2018 10:14 PM

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.

abga 11-03-2018 10:18 PM

Quote:

Originally Posted by gregors (Post 5922617)
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/

abga 11-03-2018 10:23 PM

@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/

mralk3 11-03-2018 10:38 PM

Quote:

Originally Posted by abga (Post 5922621)
@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_

ttk 11-04-2018 12:12 AM

Quote:

Originally Posted by rkelsen (Post 5922555)
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.

Didier Spaier 11-04-2018 03:19 AM

Hello/Hallo/Salut,

Quote:

Originally Posted by abga (Post 5922580)
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 -.

Lysander666 11-04-2018 07:30 AM

Quote:

Originally Posted by Didier Spaier (Post 5922652)
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.

FlinchX 11-04-2018 05:19 PM

Quote:

Originally Posted by gregors (Post 5922617)
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.


All times are GMT -5. The time now is 11:15 AM.