Author Topic: slackware questions  (Read 1015 times)

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
slackware questions
« on: 25 January 2003, 12:32 »
i just got slackware 8.1 and it's great. I have a few questions about it though.

1.) is there a command like chkconfig?
2.) if not then how do i disable/enable services?
3.) how do i turn off the random messages at login?
4.) why is it faster than redhat?
5.) how do i restart a service?
6.) why does it take 3.6gb from just 1 cd?
7.) anything different from redhat that i should know i haven't discovered yet?

i'm loving it though, i'm in the process of putting it on my laptop now.

beltorak0

  • Member
  • **
  • Posts: 223
  • Kudos: 0
    • http://www.angelfire.com/realm/beltorak
slackware questions
« Reply #1 on: 25 January 2003, 18:30 »
welcome to slack!
 
quote:

2.) if not then how do i disable/enable services?



in "/etc/rc.d" there are a number of scripts that turn on various services.  On startup, rc.S is run, then for multi-user mode (runlevel 3) rc.M is run.  That does some setups and invokes other scripts (rc.inet1, rc.inet2, rc.syslog, etc etc); but it (should) do a check to see if the script is executable.
Code: [Select]

if the script is invoked without that check, you can make the hand edits necessesary.  Then, to disable a service at startup,
Code: [Select]
and to stop it it is usually sufficient to do "root# ./rc.script stop", or, failing that, "killall -9 service".

But that's not all, also in the "/etc" directory, there is a file called "inetd.conf".  copy this to "inetd.conf-8.1" and edit the original.  comment out any lines for the services you do not want to start.

Now, as for the other part, my only beef with slackware, is that it has no default firewall.  These lines should give you some protection until you get a better script:
create file: /etc/rc.d/rc.ipfilter
Code: [Select]

If you are on dialup, change the "eth0" to "ppp0".

Add this to one of the startup scripts (prefereably before your outside connection gets initialized, i recommend the top of "rc.netdevice" if your ethernet module gets loaded by that script; the top of "rc.inet1" is another good one):
Code: [Select]

Or, you can go to netfilter guruz page and get a good script that should suit you.  they are heavily commented, so you will learn a thing or two by tripping thru them.

slackware is a very do-it-yerself distro (not so much as gentoo or LFS tho  ;)  ), and tools like "linuxconf" are not in there.

What do you mean by "random messages at login?"
You can change the login prompt by writing this to the file "/etc/rc.d/rc.local":
Code: [Select]

you can also get rid of the fortune message by chmod'ing the script "/etc/profile.d/bsd-games.sh" to non-execution, just like the startup scripts.

and if you miss the graphical login; change the following line in "/etc/inittab":
Code: [Select]
change that 3 to a 4.

hope this helps.
from Attrition.Org
 
quote:
Like many times before, Microsoft is re-inventing the wheel and opting for something other than round.

-t.


Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
slackware questions
« Reply #2 on: 26 January 2003, 01:27 »
thanks, that did help. Sorry this is so short, but I'm kind of in a hurry right now. You know why I can't login through ftp?

be back later, and thanks again.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
slackware questions
« Reply #3 on: 26 January 2003, 03:21 »
quote:
Originally posted by Stryker:
thanks, that did help. Sorry this is so short, but I'm kind of in a hurry right now. You know why I can't login through ftp?


Maybe you forgot to lube your muffler bearings?
Someone please remove this account. Thanks...

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
slackware questions
« Reply #4 on: 26 January 2003, 04:24 »
quote:
Originally posted by void main:


Maybe you forgot to lube your muffler bearings?




huh? i'm confused. I dont have a car, or know anything about them (mechanically). I mean the ftp server on the slackware distrobution isn't accepting any logins. I feel lost now, i'm not sure if you are teasing me, saying something off topic to confuse me, or that is the actual answer and i'm just stupid. all well, maybe i worry too much.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
slackware questions
« Reply #5 on: 26 January 2003, 04:59 »
quote:
Originally posted by Stryker:
huh? i'm confused. I dont have a car, or know anything about them (mechanically). I mean the ftp server on the slackware distrobution isn't accepting any logins. I feel lost now, i'm not sure if you are teasing me, saying something off topic to confuse me, or that is the actual answer and i'm just stupid. all well, maybe i worry too much.


It was a joke (common mechanics joke). Muffler bearings do not exist. I use this phrase periodically and it's my sick way of saying "need more information". I thought you had been around long enough to know me by now. Sorry about that.

There are two ways that most FTP servers can be spawned. Either in daemon mode or from inetd (or xinetd). If you have an /etc/inetd.conf file edit it and you should find a line that is commented out containing "ftp". Uncomment it and "kill -1" the PID number for the "inetd" process. If you are using "xinetd" there should be a /etc/xinetd.d directory containing a file called "ftp" or "ftpd". In that file there might be a line "disable = yes". Change it to "no" and "kill -1" the xinetd process.

If you are using PROFTPD for an FTP server you also have the option to run it in daemon mode rather than from inetd. This is done in PROFTPD's configuration file "/etc/proftpd.conf". Of course if you run it in daemon mode you will have to start it in the startup script that your other daemons are started with. It's been 8 years since I've used Slack so I'm not sure which FTP server and inetd packages it includes today.

If you could tell me which FTP server you have installed, and whether you have either the inetd or xinetd packages installed, that would be a big help.

[ January 25, 2003: Message edited by: void main ]

Someone please remove this account. Thanks...

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
slackware questions
« Reply #6 on: 26 January 2003, 05:12 »
it's proftp running on inetd. it's running and everything, it prompts me for a login when i connect. it just doesn't accept any credentials i give it (except anonymous, which i disabled).

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
slackware questions
« Reply #7 on: 26 January 2003, 05:13 »
it's proftp running on inetd. it's running and everything, it prompts me for a login when i connect. it just doesn't accept any credentials i give it (except anonymous, which i disabled).

And i have been here long enough, but i just never heard you use that phrase before.

(Edit), someone please delete the other one, I accidently pressed post twice cause it was going slow.

[ January 25, 2003: Message edited by: Stryker ]


voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
slackware questions
« Reply #8 on: 26 January 2003, 05:19 »
quote:
Originally posted by Stryker:
it's proftp running on inetd.




It can't be both. If it is started from inetd and no one is trying to connect there should be no ftpd process running. inetd will start an instance of it at login time. If it is running then that means you are starting it as a daemon and it should be commented out in your /etc/inetd.conf file so as not to fight over port 21.

Since it is running I will assume that you have it set to run in standalone mode (ServerType standalone) in the /etc/proftpd.conf. Can you paste in a copy of your /etc/proftpd.conf so I can look it over?

You might also want to search for ftp related login messages in your /var/log/messages and /var/log/secure logs:

# grep ftp /var/log/messages | tail
# grep ftp /var/log/secure | tail

 
quote:

And i have been here long enough, but i just never heard you use that phrase before.



Judging from your user# I would say that you haven't been here long enough (unless you read this forum long before you registered).

[ January 25, 2003: Message edited by: void main ]

Someone please remove this account. Thanks...

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
slackware questions
« Reply #9 on: 26 January 2003, 05:28 »
My browsers being weird, i edited this post about 3 times to get it right. this is the uncommented code in /etc/proftpd.conf.
I assure you it is running with inetd. the problem is not getting it to connect, but getting it to login after you connect. From what you've told me it seems like you are trying to advise me on getting it running.

Code: [Select]

And I did read here before i signed up. And even still I read all those old posts.

Code: [Select]

[ January 25, 2003: Message edited by: Stryker ]


voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
slackware questions
« Reply #10 on: 26 January 2003, 05:38 »
Have you looked in your /var/log/proftpd.log file for login error messages? If there are error messages could you let me know what they are?

Also, do you have iptables firewall configured? If so could you let me know what "iptables -L" shows?

Also, when you try and log in from a client, what is the "exact" message that is displayed?

[ January 25, 2003: Message edited by: void main ]

Someone please remove this account. Thanks...

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
slackware questions
« Reply #11 on: 26 January 2003, 05:41 »
Code: [Select]

useradd doesn't automatically add the shell or create the hoome directory in slackware (at least for me). i didn't figure out the shell part until now, i set it to /bin/bash and it works fine now.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
slackware questions
« Reply #12 on: 26 January 2003, 05:44 »
Aha. Now for the question I should have asked first. Why FTP and not SSH/SCP/SFTP?

Also, if you must use FTP you might want to read over the proftpd site. Lot's of good information:

http://www.proftpd.org/
Someone please remove this account. Thanks...

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
slackware questions
« Reply #13 on: 26 January 2003, 05:47 »
quote:
Originally posted by void main:
Aha. Now for the question I should have asked first. Why FTP and not SSH/SCP/SFTP?

Also, if you must use FTP you might want to read over the proftpd site. Lot's of good information:

http://www.proftpd.org/



Well most people don't have support for ssh/scp/sftp, i will certainly try to make more secure options for people, but i'd like to be as supportive as possible. and i didn't check the website because this is much faster, and if i(or anyone) runs into a similar problem then can search here and find this thread. You know where i can get information on more secure file transfers? i've never tried it before.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
slackware questions
« Reply #14 on: 26 January 2003, 05:52 »
Ahh, so this is going to be used by more than just you, possibly the general public? There are plenty of Windows clients out there that work with SSH (WinSCP is very much like WS_FTP (except WinSCP is free)). I personally would force users to use SSH over ftpd. Too many security issues with FTP. But if you have explored all the alternatives and must use FTP then proftpd is my choice. But please keep up on  the security sections at the proftpd web site. Of course you want to keep up on security about any piece of software you have running on an internet connected machine, including ssh.

[ January 25, 2003: Message edited by: void main ]

Someone please remove this account. Thanks...