Is the windows 2000 share mounted as a cifs network drive on openSUSE
or are you saving to a Samba share in a network browser? There’s a
difference in behaviour.
I open Konqueror, click Network, click Workgroup, click the share I want
to connect to, and enter my username and password. Once in I can create
directories, drag and drop files, delete files; so I have rw
permissions.
What I eventually had to do was save the file to my desktop, edit the
file and drag it to the server.
mount -t cifs -o username=ted,password=computer
//centraldata/Storage\Volume /mnt/vortex
mount error 113 = No route to host
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Which is weird because I can get to it just fine from Konqueror.
The only path you can have referring to a server in the cifs mount is to
join these two things: the server network name and the server share
name, so you get like this:
//windows_server/share_name.
Note that the slants are all the same direction. “Servername” can be an
IP address or a (netbios-style) network name. So if you see in Konqueror
the share like this:
smb://windows_server/share_name
then the mount in fstab must be the same (//windows_server/share_name).
You can’t have a deeper path than that in fstab; you drill down further
after you’ve mounted the share.
You may find that you have to use the IP address instead of the
Server_Name. If you have a DNS or WINS server, you can use the name.
Notice that you can not just give the //Server_Name/. You must give the
//Server_Name/Share_Name/ for it to work. Put that folder name in there
as shown.
Next comes the folder where the share will mount. Mine is /NAS and you
must manually create that folder in / or it will not mount there. The
share will not create the folder automatically.
The user netuser must be created in Linux before it can be created in
Samba. This user will also have to have permissions set on the server
that is sharing the folder.
UID can be the User_Name or the User_ID_Number. I prefer to use the
User_ID_Number, but I am just picky that way. Same for GID.
The nobrl will assist if you have problems saving files in OpenOffice.
It won’t hurt to have it in there anyway.
_netdev will make the share wait till it is available on the network
before mounting it.
I also had to create /home/wilson/.kde4/Autostart/mount.sh and then set
up wilson as an SUDoer for that script. The only line in the script is
as follows.
mount -a
When KDE starts, it runs that script and mounts the drive. Only root
can mount a drive, so you have to SUDo to run the script.
mooreted;1907373 Wrote:
> In Konqueror,the address bar says:
>
> smb://ted@centraldata/
>
> I changed fstab to:
>
> //centraldata/ /mnt/vortex cifs
> username=ted,password=computer,_netdev,uid=mooreted,gid=users 0 0
>
> It still won’t let me in.
>
> Btw, the Suse firewall is turned off.
You need TWO words in the server description. You’ve left out the name
of the share. The name of the server is (presumably) centraldata. Make
the entry like this:
//centraldata/share_name
or like this //abc.def.ghi.jkl/sharename as per wilson
By the way. I am no expert at CIFs shares. Every time I have to set one
up, I go to ‘Swerdna’s’
(http://www.swerdna.net.au/linhowtosambacifs.html) site and study it. He
has gathered all you need to know and put it in one place for easy
reference. It should be in your bookmarks.
In Konqueror, when I open the Samba share I just click Workgroup then
Centraldata. Then I am presented with a bunch of directories. They are
all shared. One problem is, all the directories have spaces in the
names; that’s why I had the \ in there. For instance, one of the
directories I use a lot is called “Vortex Folders”.
I have tried the IP address, but I keep getting “Permission Denied”.
Why does Konqueror have no trouble at all with it, but cifs can’t do
it?
I will try it again when I get back to work, but I’m really confused
atm. I pretty much wasted a work day trying to get this done.
I appreciate the help very much, I’m just getting frustrated.
To escape a space in the name in fstab replace two words with
two\040words
Sort of like this
//centraldata/storage\040volume /mnt/vortex cifs
user=name_of_owner_on_windows,password=windows_password,_netdev,nobrl,uid=mooretid,gid=users
0 0
I tried replacing “Centraldata” with the IP address and still get the
same error. I checked the router, didn’t see any problems; no blocked
ports internally. Something about our network just wont let cifs work.
Oh well, thanks for the help everyone. I have to actually get some work
done now.
Did you create the folder /mnt/vortex ? Also, I see this ,uid=moore ted,
and I don’t think it will work with that space in the name. Try using
the number of the uid instead.
Okay, sucess (sort of). I went to the server and found the right IP
address. traceroute hopped right out of our network and found some
unknown host lost in the cloud somewhere.
With the right IP address, I can mount it with:
su
<password>
mount -a
However, it’s not mounting automagically at bootup. I have a Remote
Shares icon on the desktop, but when I click it I get “Permission
Denied”. I have to mount it as root first.
I am investigating the problem. At least I’m down to just a permission
problem.
Go to the ref by Wilson_Phillips and check the FAQs there, particularly
“SuSEfirewall2 bug”, “Slow Networks” and “Using OpenOffice.Org and Word
Files”.