LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-19-2004, 11:38 PM   #1
maybbach
Member
 
Registered: Feb 2004
Location: Cincinnati, OH
Distribution: SimplyMepis 3.3
Posts: 68

Rep: Reputation: 15
determing samba version


how can you determine the version of samba on redhat 9? i logged in as root, and typed smbd -V at console and it said bash: smbd: command not found.

not sure what else to do.
 
Old 05-20-2004, 12:15 AM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
try:

# /usr/sbin/smbd --version

(edit: or "locate smbd" and then use the path )

Last edited by synaptical; 05-20-2004 at 12:16 AM.
 
Old 05-20-2004, 07:28 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
You can't run smbd as a user; su to root before running smbd --version.
 
Old 05-20-2004, 10:47 AM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
he said he logged in as root.
 
Old 05-20-2004, 10:57 AM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
In which case, Samba is not installed....?

Not many other reasons for it not to be found by root, are there? Samba normally should install to a location in root's $PATH$, I would think.
 
Old 05-20-2004, 11:11 AM   #6
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Quote:
Originally posted by motub
You can't run smbd as a user; su to root before running smbd --version.
Not true.

You can run /usr/sbin/smbd --version as a regular user.
 
Old 05-20-2004, 11:17 AM   #7
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
So you can. You learn something new every day (use the full path if you don't want to be bothered su-ing. Neat). But if the user was running smbd -V as root and got command not found, haven't we entered the realm of the literal error message, indicating that smbd is not found because it is not there (installed)?
 
Old 05-20-2004, 11:22 AM   #8
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
As synaptical said, he could
locate smbd
to see where it is.
Or, in Red Hat he could probably run
rpm -q samba.
Or, he could become root and do an exhaustive search with
find / -name 'samba*'

If he doesn't have it, then he could go to
http://us1.samba.org/samba/ftp/Binar...RPMS/i386/9.0/ and get it.
 
Old 05-20-2004, 11:35 AM   #9
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
If it turns out that RH installs Samba to some freaky out-of-the-way place like /opt/bin (and that's why it's not found), it's going to be another black mark for them in my book (as if they care ).
 
Old 05-20-2004, 09:42 PM   #10
maybbach
Member
 
Registered: Feb 2004
Location: Cincinnati, OH
Distribution: SimplyMepis 3.3
Posts: 68

Original Poster
Rep: Reputation: 15
i found out what version i have it's 2.2.7a. i used the /usr/sbin/smbd -V command. I tried installing the samba rpm but it never installs all the way. for everyone saying how much better linux is than windows and how they can't wait for it to take windows out of it's spot don't hold ur breath. unless they make it a lot easier to basic tasks, windows is gonna be around for years to come. linux seems more like a headache than an OS. i guess if u have bored and have absolutely nothin to do, it's cool....
 
Old 05-21-2004, 07:47 AM   #11
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
unless they make it a lot easier to basic tasks, windows is gonna be around for years to come.
Bull. Just because you don't know how to do basic tasks under Linux, does not mean that it is not easy to do them. I know, for instance, how to drive a car, but only a car with automatic transmission. I do not know how to use manual transmission. Does that make manual transmission difficult to use? For me, yes, because I don't know how, but generally, no.

Do you think it's somehow easy to find the version of system services under Windows? Ha. For one thing, that is not a "basic task". Most "normal users" don't have any interest in the version of their various system services, don't have access to the location where the information about those services is stored, and wouldn't know how to read that information if they did.

Trust me, typing /usr/sbin/smbd -V is a lot easier than going to Start=>Settings=>Control Panel=>Administrative Tools=Services, which, btw will not tell you the version of the service in question in the Property sheet, but will at least give you the full path to the service's .exe, so that you can then open up a file manager (Explorer), browse to the service, select it, right-click and choose "Properties", then go to the Version tab and get the file version. Assuming you have Administrative privileges on the Windows computer to even get to the Admin Tools cpl in the first place, which privileges a normal user does not have by default.

"Basic tasks" consist of: surfing the Web; playing media files; editing text files; file management; editing text or graphics files; and maybe playing a couple of games. Basic tasks are just as easy under Linux as under Windows, and basic administrative tasks are often easier.

Quote:
linux seems more like a headache than an OS. i guess if u have bored and have absolutely nothin to do, it's cool....
Well for many of us, Windows seems more like a headache masquerading as an OS, but I'm still waiting to hear how the fact that you wanted to find your Samba version (which is the kind of task one does when one has absolutely nothing to do, rather than a common, "basic" task) and had some trouble doing so (despite the fact that your question was answered in the first reply) makes Linux so difficult to use that you have decided its whole future (Windows wins, Linux loses, badly) based on what seems to be a very minor incident.

Maybe Linux does not fit your needs. That's cool. But there's no reason to disrespect a great OS just because you can't use it/don't care to use it/don't care to learn how to use it/prefer to use something else.
 
Old 05-21-2004, 12:10 PM   #12
maybbach
Member
 
Registered: Feb 2004
Location: Cincinnati, OH
Distribution: SimplyMepis 3.3
Posts: 68

Original Poster
Rep: Reputation: 15
the basic tasks i spoke of was not determining the version of samba, but simple things like installing video drivers, or figuring out that installing acrobat takes more than the basic "windows" way of picking the install directory and letting the setup file do the rest, or trying to update gaim, or installing an rpm and then learning that there's a bunch of dependencies needed to be install before you install the damn thing. also on the verion of linux i was using, u cant even play mp3's with xmms. and the word "dificult" is a relative term, i.e. someone's opinion. your analogy about driving a car proves this because there are people who have never drove, or even see a car, and for them it would be dificult. installing a network from the ground up for a large company and configuring the appropriate hardware (routers, switches, firewalls), while keeping it secure would be a extremely dificult task, but for someone who's been in that field for many years would be an "easy task."

i am entitled to my opinion, and if my opinion is linux is a piece of shit, then calling it bullshit because u dont agree is immature. i didnt quote facts or statistics. i even said in my 1st post that im totally new to linux, so all i have is my opinion.
 
Old 05-21-2004, 02:46 PM   #13
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
if my opinion is linux is a piece of shit, then calling it bullshit because u dont agree is immature.
And calling something valueless (what "a piece of shit" really means), because you don't know how to use it, and/or because it does not behave in the way that you happen to be used to-- whether or not it actually performs the task it is designed for well (which you also don't know, because of the previous), is in fact mature?

If you say so. I'm out.

Next time (should there be one), maybe you want to skip RedHat.... most other distros do include multimedia capacity out of the box, RedHat is just picky about these legal issues. No need to tar the entire OS because of the choices of one distro.
 
  


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
Determing IP Info B055 Linux - Wireless Networking 4 11-12-2005 12:53 AM
Samba version on rh 4 eh jedimastermopar Red Hat 1 05-02-2005 10:23 PM
Need help in determing what software I will need for my soon to be new setup. Scott Dennis Linux - Hardware 1 05-04-2004 05:13 PM
Need help in determing what software I will need for my soon to be new setup. Scott Dennis Linux - Software 0 05-04-2004 07:09 AM
samba version sharkcohen Linux - Newbie 6 11-24-2003 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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