The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
samba user23 UNIX for Dummies Questions & Answers 0 05-21-2008 10:08 AM
Samba Gegestic SUN Solaris 1 05-30-2006 11:49 AM
installation of Solaris: installation bypasses network config. cadmiumgreen SUN Solaris 2 07-15-2005 07:31 PM
Samba phapvn UNIX for Advanced & Expert Users 13 12-07-2001 09:54 AM
Samba installation souldier UNIX for Advanced & Expert Users 4 11-07-2001 01:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #15  
Old 04-13-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
Samba Installation

" One way to test samba is to open Windows explorer and use the syntax, now don't flip the slash directions: \\192.168.0.144 "

On XP, password window opens.
Put in root, and as I do not use a password clicked ok and XP altered password window to user BANORA/root.
Leaving password blank click ok and window stays there waiting for password.
Altered user to banora/root and it jumps back to BANORA/root.
Alter user to banora and it jumps back to BANORA/root

"Another way to test samba is to open Internet Explorer and type file://192.168.0.144 Again, do not flip the slash directions "

Same thing happened here as above.

W2K with Firefox did nothing ie no password Window.

I think all the above is happening because neither client, XP and W2K, has been set up as per the RedBook.

Bakunin is probably right re those 129.183 entries.
I must get into SWAT and fix up that configuration file.
The RedBooks say http://banora:901 must be working before setting up the clients.

Perhaps my router settings are fouling this up ?

Anyway I have altered that many files and settings in AIX5.2 am going to wipe it out and start again with the IBM Samba 2.2.7-4 which is a later version than the Bull one I was using.
Uninstalled Bull Samba in smit, but all the old bull ( pardon the pun ) I put in the various files was not deleted. hence the reinstall of AIX 5.2.

A new leaf, stay tuned.

Have a good trip.
Reply With Quote
Forum Sponsor
  #16  
Old 04-14-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
Samba Installation

Things have fared better on the new install of AIX 5200-09 on banora 192.168.0.144.
The IBM version of Samba 2.2.7-4 does not set up a smb.conf so I used the old one
with two modifications listed below in { .... } brackets.

[global]
workgroup = OPEN SOURCE
server string = Samba 3.0.4.0 { altered ver to 2.2.7-4 }
security = user
encrypt passwords = Yes
smb passwd file = /var/samba/private/smbpasswd
{ altered to: smb passwd file = /usr/bin/smbpasswd }
{ refer to #find / -name smbpasswd below }
log file = /usr/local/samba/var/log.%m
mangle case = Yes

[homes]
force user = %U
read only = No
hosts allow = 129.183.

[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No

[public]
path = /tmp
guest ok = Yes

The command # /usr/bin/smbclient -L banora seems to work better

added interface ip=192.168.0.144 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Anonymous login successful
Domain=[OPEN SOURCE] OS=[Unix] Server=[Samba 2.2.7]
Sharename Type Comment

homes Disk
public Disk
IPC$ IPC IPC Service (Samba 2.2.7-4)
ADMIN$ Disk IPC Service (Samba 2.2.7-4)
hp4500duppcl Printer

Server Comment

Workgroup Master

The command #/usr/bin/testparm | pg seems to work well also

Load smb congig files from /etc/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Precessing section "[public]"
Loaded services file OK.

Now to http://banora:901 in Seamonkey
Up pops a password box.
banora has only one user root who does not use a password
Log on to computer is always root and password left blank.
In the Seamonkey password box as a result of http://banora:901 I put in root as
user and leave the password box empty. Get 401 Bad Authorisation username or password incorrect.

I then tried this to set up user root without a password in smb.conf

# smbpasswd -a root
enter new smb password:
retype new smb password:
getsmbfilepwent: malformed password entry (no
getsmbfilepwent: malformed password entry (no
getsmbfilepwent: malformed password entry (no
getsmbfilepwent: malformed password entry (no
getsmbfilepwent: malformed password entry (no
add smbfilepwd entry: unable to open file.
Failed to add entry for user root.
Failed to modify password entry for user root
#
I tried to give user root a password as admin123 but still got this error.

Reading the web I think http://banora:901 to get into SWAT needs an association
between /etc/passwd and /etc/smbpasswd.
Here is my hunt on banora

# find / -name passwd
/usr/bin/passwd
/etc/passwd
/etc/security/passwd

# find / -name smbpasswd
/opt/freeware/bin/smbpasswd
/usr/bin/smbpasswd

# ls -l /etc/passwd
-rw-r--r-- 1 root security 526 Apr 13 11:22 /etc/passwd

# ls -l /usr/bin/smbpasswd
lrwxrwxrwx 1 root system 32 Apr 12 16:22 /usr/bin/smbpasswd
-> . ./../opt/freeware/bin/smbpasswd
#

Three questions please

(1) Is the password association matter stopping the http://banora:901 password
window in Seamonkey from working, using user root without a password ?

(2) Is the password path alteration I made in smb.conf okay ?

(3) The path in smb.conf " /usr/local/samba/var/log.%m " does not exist. There is
no file called log.%m in the computer. Does this matter ?

Regards
Reply With Quote
  #17  
Old 04-15-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
Samba Installation

Don't know where those smilies came from.
Lines should have read

getsmbfilepwent: malformed password entry (no
Reply With Quote
  #18  
Old 04-15-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
Samba Installation

Smiley gremlin

Line should have read at end

(no, then a space, then a semi colon )
Reply With Quote
  #19  
Old 04-16-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
Samba Installation

Discovered by pure accident that root MUST have a password for http://banora:901 to work on opening SWAT.
Am now at the SWAT configuration screen which has a Wizard button which is not covered in my Redbook manuals.
Will hunt this down on how to fill it out.
Thanks Prichard for all your help and patience in getting me this far with Samba.

Regards
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0