Hi,
You need to mount the share as a regular user.
Please check this thread for info.
I have a win2k_server box whose folder i have mounted thro samba onto a linux mandrake box. I want to be working on some spreadsheets on this mounted folder. I want to use the linux box as the client in the meantime. But i cannot change the write permissions to the folder and its contents. Apparently the mountis owned by root, but i still cannot change the permissions even from the root. I have enabled all rights on the win2k pc, and added the linux user but no success. Other windows users can fully access this folder
Hi,
You need to mount the share as a regular user.
Please check this thread for info.
Open a terminal window.
Become su.
Put this in your /etc/fstab file:
//Windows_Box/Windows_Share /client_mnt_point smbfs credentials=/root/.smbcredentials,dmask=0777,fmask=0777 0 0
OR
//Windows_Box/Windows_Share /client_mnt_point cifs credentials=/root/.smbcredentials,dir_mode=0777,file_mode=0777 0 0
if your Linux kernel is compiled for CIFS. They say CIFS is better than SMBFS.
Substitute the variables Windows_Box, Windows_Share, and client_mnt_point to suit your system. Create /root/.smbcredentials as a hidden file containing the username and password you use to log in to your Windows box, like so:
username=your_Windows_login_ID
password=your_Windows_login_password
Assuming the Windows share isn't mounted (if it is, unmount it), issue the command:
mount -a
Now, whenever you fire up your Linux box and if your Windows box is running, your Windows share will be automagically mounted and you will have read and write permission to all the files stored there.
I been trying this with Debian to connect to my Thinkpad laptop using Win2K, but I keep getting an error about "invalid share name" or something like it.
what name do I use for share?
the machine name is Saptech-01 and my login name for it is "sappy".
What go in this: //Saptech-01/share? If I want to share the D drive, would I put //Saptech-01/D$ ?
Thnx.
D$ is an administrative share. You can try that, as long as sappy is an administrator of that machine. Otherwise, you need to create a share on the server machine, and assign it a share name.
Thnx Trickster for the reply. Even though I get this error, and I did try without the D$, when I use Nautilas to view Network, I can see the machine listed, but can't see any files or folders.
I do have share files & printers checked on the Win2K machine.
I'm doing all this on the linux machine as normal user.
Any more ideas?
Thnx.
You need to actually create a share on the Windows machine.
Follow this link.
Never mind, I got it figured out. The Win machine IP doesn't end in 101 but 102. My Linux machine IP ends with 100, so what is 192.168.0.101?
Anyway everything is working using LInux to connect to Win2K, next to get Win machine to connect to Linux.
Thanks again.
I have it shared and I switched from using the D$ to a regular folder on the windows machine.
Something is not setup right even though I can see the Win machine, but using the command line I get errors.
saptech@ghostdawg80:~$ smbmount //Saptech-01/Misc /mnt/saptech-01
Error connecting to 192.168.0.101 (No route to host)
6481: Connection to Saptech-01 failed
SMB connection failed
saptech@ghostdawg80:~$
When I ping it I get this:
saptech@ghostdawg80:~$ ping Saptech-01
PING Saptech-01 (192.168.0.101) 56(84) bytes of data.
From 192.168.0.100 icmp_seq=2 Destination Host Unreachable
From 192.168.0.100 icmp_seq=3 Destination Host Unreachable
From 192.168.0.100 icmp_seq=4 Destination Host Unreachable
Even using the IP numbers I get same error.
Thnx.
Are the machines connected directly, or through a switch? Do they have the correct getway?
Bookmarks