1834137 Members
2056 Online
110064 Solutions
New Discussion

Re: Samba and CIFS...

 
Edgar Arroyo
Regular Advisor

Samba and CIFS...

Ok, I changed my root password and changed the password on the samba but I am getting this error when I try to mount my share(s)

[/root@unix1] # cifsmount //unix2/share /net
Connecting Share: SRV: Bad password
[/root@unix1] #

Can someone point me to where are password changes done in order for everything to works smooth?
9 REPLIES 9
Darren Prior
Honored Contributor

Re: Samba and CIFS...

Hi,

How have you set up the authentication on the CIFS server? Have you set up smbpasswd if required?

You could try using mount -F cifs //unix2/share /net followed by a cifslogin to unix2.

regards,

Darren.
Calm down. It's only ones and zeros...
Edgar Arroyo
Regular Advisor

Re: Samba and CIFS...

This is what happens with "mount"

[/root@unix1] # mount -F cifs unix1:/share /net
Mounting Share: Device busy
[/root@unix1] #
Edgar Arroyo
Regular Advisor

Re: Samba and CIFS...

I have authentification set to SHARE
Steven E. Protter
Exalted Contributor

Re: Samba and CIFS...

mount -F cifs unix1:/share /net

The only conclusion I can come to so far is the /net folder already HAS a filesystem mounted on it.

SEP

password changes to samba may not be needed when the main password changes, depends on your authentication methodology.

smbpasswd -a

works if you are authenticating on a unix box without a windows domain controller involved.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Edgar Arroyo
Regular Advisor

Re: Samba and CIFS...

[/@unix1] # ls -al
total 50
drwxr-xr-x 16 root root 1024 Jun 13 22:13 .
drwxr-xr-x 16 root root 1024 Jun 13 22:13 ..
drwxr-xr-x 2 root sys 96 Jun 7 12:17 SD_CDROM
lr-xr-xr-t 1 root sys 8 Jun 5 19:56 bin -> /usr/bin
dr-xr-xr-x 17 bin bin 5120 Jun 15 00:45 dev
dr-xr-xr-x 35 bin bin 6144 Jun 15 00:45 etc
drwxr-xr-x 3 root root 96 Jun 8 08:45 home
lr-xr-xr-t 1 root sys 8 Jun 5 19:56 lib -> /usr/lib
drwxr-xr-x 2 root root 96 Jun 5 19:34 lost+found
dr-xr-xr-x 1 root root 512 Jun 15 00:44 net
dr-xr-xr-x 42 bin bin 2048 Jun 12 02:21 opt
drwxrwxr-x 28 root sys 2048 Jun 15 12:35 root
dr-xr-xr-x 12 bin bin 3072 Jun 9 23:45 sbin
lrwxr-xr-x 1 root sys 10 Jun 8 13:56 share -> /var/share
dr-xr-xr-x 10 bin bin 1024 Jun 15 00:44 stand
drwxrwxrwx 8 bin bin 1024 Jun 15 20:35 tmp
dr-xr-xr-x 2 root root 96 Jun 5 21:19 tmp_mnt
dr-xr-xr-x 41 bin bin 1024 Jun 10 21:41 usr
dr-xr-xr-x 29 bin bin 1024 Jun 8 13:55 var
[/@unix1] # chmod 777 net
chmod: can't change net: Read-only file system
[/@unix1] #
[/@unix1] # chmod 777 net
chmod: can't change net: Read-only file system
[/@unix1] #


Well, that answers some questions...
Edgar Arroyo
Regular Advisor

Re: Samba and CIFS...

Since my /net is set read-only I created a new folder to mount the shared one on the other machine and when I mount -F cifs unix2:/share /unix2 the folder unix2 dissapears?!
Edgar Arroyo
Regular Advisor

Re: Samba and CIFS...

Can someone post a smb.conf that will make windows machine ask for username and password but still be able to browse the available shares under network neighborhood before authenticating? and to have password set on the share for the user specified on the sare?
Edgar Arroyo
Regular Advisor

Re: Samba and CIFS...

Here is my smb.conf file:

============================================

# Samba config file created using SWAT
# from unix1.edgar (192.168.0.254)
# Date: 2004/06/08 14:25:55

# Global parameters
[global]
workgroup = edgar
netbios name = unix1
os level = 20
encrypt passwords = yes
null passwords = yes

[share]
path = /share
writeable = yes
public = yes


============================================

the "encrypt passwords = yes" is causing me an error when I go to cifslogin after I mount the share.

[/@unix2] # cifslogin unix1 root
Remote user root's password:
Logging in User: SRV: Bad password
[/@unix2] #

============================================

but if I set "encrypt passwords = no" and with the -u option on cifslogin it works with no problem.

[/@unix2] # cifslogin unix1 root -u
Remote user root's password:
[/@unix2] #

============================================

Can someone please help me fix this problem? I would like to use encrypt passwords.

Thanks.
Edgar Arroyo
Regular Advisor

Re: Samba and CIFS...

By the way, to clarify some doubts, the /net was used by the NFS server, it was a mount set via SAM. I deleted it and I was able to use the /net directory to mount my shared directory from the other machine.