Koozali.org: home of the SME Server

Username and Password requirement when connecting to an Ibay

Offline thianb

  • **
  • 33
  • +0/-0
Username and Password requirement when connecting to an Ibay
« on: January 05, 2010, 03:16:25 PM »
Hi All

I have created shares on my SME Server that I mounted to a NAS using the following commands:

mkdir /root/.passwd
echo "username=joe
password=theplumber
" > /root/.passwd/nas01
chmod 400 /root/.passwd/nas01

cd /etc/e-smith/events/local
echo "#! /bin/sh
/etc/rc.d/init.d/netfs start
mount -t cifs -o _netdev,credentials=/root/.passwd/nas01 //nas01/share1 /home/e-smith/files/ibays/info/html/shar
mount -t cifs -o _netdev,credentials=/root/.passwd/nas01 //nas01/share2 /home/e-smith/files/ibays/info/html/shar
" > S95netshares
chmod 755 S95netshares

But now every time we try to access the shares from a user's workstation it asks for a username and password even though you log in as the Admin of the domain on the pc. I did configure the NAS username as admin and a password and its exactly the same as the one specified in the command above.
Plaese Assist

Thian

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Username and Password requirement when connecting to an Ibay
« Reply #1 on: January 05, 2010, 09:14:48 PM »
Hi

I can not be the most skilled to answer... so take this as a wish to help someone else:

 1) Have you done those mount command running at command line before try to template them ?

 2) could you test the NAS access from server (copy any file from and to each share)

 3) are you sure WinXP is asking you the SHARE1/SHARE2 user/password or it´s asking you the user/password for the SME server ?
     Do you try any of them ? What was the answer ?

...

Offline Jon-0x25

  • *
  • 6
  • +0/-0
Re: Username and Password requirement when connecting to an Ibay
« Reply #2 on: January 06, 2010, 10:15:07 PM »
I did configure the NAS username as admin and a password and its exactly the same as the one specified in the command above.

Hi, I am no expert so treat these comments as such, but I've had experiences similar to yours with NFS before though not anything like your setup. I discovered that the UID had to match for it to work in my case. The UID is a numeric value for the userid and I had to configure it to be the same on both systems.

The easy was of find out the UID is to look in /etc/passwd.
Code: [Select]
testuser:x:5000:5000:Test User:/home/e-smith/files/users/testuser:/usr/bin/rssh
I was able to simply change the UID on one of the systems and it worked fine. YMMV. I would suggest caution though as I don't know what else may be affected by such actions.