Networking :: Samba Update - Cannot Mount Network Shares Using Script

May 13, 2010

I've, for years, been using a little script, as user, to mount network shares, like this:
mount.cifs //server/Data ~/Data -o username=robertw
Previously it used to be smbmount, but that changed. Anyway, the latest updates have stopped me be able to run this as a user. I tried running it as root and that just won't let me get access to the shares, tells me permission denied. I thought I'd try using fstab. This gives varying degrees of success.

Here are two of the entries:
//server/CAD /mnt/CAD cifs credentials=/etc/samba/auth.server.robertw 0 0
//server/Data /mnt/Data cifs credentials=/etc/samba/auth.server.robertw 0 0
The auth.server.robertw clearly shows my correct username and password.

Now, I can't get into the /mnt/Data directory at all, just says permission denied and I can only read from, but not write to, the /mnt/CAD directory. My /mnt directory is like this.
drwxr-xr-x 20 500 505 0 2010-05-11 06:21 CAD/
drwxr-x--x 170 500 501 0 2010-04-09 23:18 Data/
I'm on Mandriva 2010 if that's important.

View 5 Replies


ADVERTISEMENT

OpenSUSE Network :: SAMBA: Can Mount Windows Shares But They Are Read-only

Apr 1, 2010

I am using the mount command to mount Windows shared folders are another machine on my LAN, to have them show up in the Linux filesystem. The command mounts the folders just fine, however the access is read-only.

In the command, I am also using the -o option to specify a username and password that should have full access. Also, I have used this identical command on my other distros and it seems to work fine. I've Googled high and low, trying to find a way to specify a Samba user/password for authentication. I know one of the other distros had a program that I could specify a Samba user/password to simulate a Windows login.

View 6 Replies View Related

Networking :: Samba Can Mount Some Vista Shares But Not Others?

Jan 30, 2010

I'm having trouble setting up samba to work with my vista machine. Whenever I try to mount certain shares I'm getting error 13- permission denied. Specifically, I'm trying to mount my entire C: with this command at the console:

mount.cifs //windows_box/C$ /mnt/windows -o username=tyler,password=****

I've also tried:

mount -t smbfs
mount -t cifs

The funny thing is that I CAN mount some other shares, but not all. My distro is slack-current. I've been following as many relevant threads on this issue for a while now and have tried as many of the suggestions as I could understand, but it's getting to the point that I've lost track of what I've tried and what I haven't. Things I have tried:

Checking permissions on the shares: seem to be ok
enabling encrypted passwords: not sure if I did it right.
editing the registry for LmCompatablity

[code].....

View 8 Replies View Related

Ubuntu Networking :: Samba Shares 'Unable To Mount Location'

May 23, 2010

on 10.04 I clicked to share my music folder with the network (other computer also having 10.04) and it installed samba for me. I restarted expecting to find sharing working as it had on the other computer by doing the exact same thing. But for some strange reason I can't access the shares on either computer through the network workgroup. It just says "Unable to Mount Location".

View 7 Replies View Related

Ubuntu Networking :: Unable To Mount Samba Shares Between Computers

Oct 15, 2010

i have a ubuntu 10.10 desktop and laptop. i installed samba, and smbfs. i shared a folder on each computer. when i browse the network i can see the laptop from the laptop, and can see the desktop from the laptop, but i cant see the laptop from the desktop. when i try to mount the share it says unable to mount, but mounts it anyway...but, i need to be able to mount it so that rsync will see the shares as a dir on the desktop. i tried manually mounting via smbmount following several threads that i found, and i keep getting error sudo smbmount //192.168.1.78/share /media/laptop Password: Unable to find suitable address

that is as far as i've been able to get. i've looked and have only been able to find threads about windows shares, not between 2 ubuntu machines. and i dont know why laptop can see the desktop but not the other way around. they have identical smb.conf files

View 2 Replies View Related

Server :: File Server For Windows - Mount More Than One Samba Shares As Network Disk

Jun 17, 2011

I want to setup a Linux File Server for a small windows network (around 50 users). I do know that I am gona need Smb service/pkg for that. I haven't used Samba for a while now and as per the best of my knowledge, entire communication (including usernames and passwords) between a samba server & windows client machines will be plain text. Is there any way to secure all this communication??

Secondly, if i remember correctly, MS windows wont let me mount more than one samba shares as network disk when all my shares can be accessed by different smb users with different passwords?? is there a solution to this problem? OR may be if there is any other package available for this purpose so that i wont have to use samba?

View 4 Replies View Related

Ubuntu Networking :: Samba Shares Not Visible On The Network?

Jan 24, 2010

I'm trying to share some folders over the network, but the shared folders are not visible on another computer. This is through double clicking my computer from the Network list in Nautilus. However, I can access the share by typing the full address(<computer name>/<share name>) in "File > Connect to Server...".Since I can't type the address manually from my blu-ray drive, I need to get the shares to show on the network. What is wrong with my settings?

View 2 Replies View Related

Fedora Networking :: Samba Can't Mount Shares - Error Message 'Failed To Receive Shared List From Server'

Oct 4, 2009

It's been awhile since I posted anything which is a good sign my install has been working well and I have been able to handle most everything. However, I'm not able to handle this issue. I recently installed F11 and everything went well. But, when trying to see my other computers on the local network, I cannot. I receive this error message: Unable to mount location Failed to receive shared list from server. I understand the message as it is obvious, but do not know how to fix it.

View 14 Replies View Related

Ubuntu Networking :: Cannot Mount Windows Network Shares

Feb 13, 2010

I am trying to share files on my Windows XP Home machine over my P2P network to my Ubuntu netbook. The folder I wish to share is configured in Windows with public permissions. I go to the Files & Folders > Documents and then I click on Network in the Places tab. A Windows Network icon appears, but when I double click it I receive the error message, "Unable to mount location. Failed to retrieve share list from server."

View 2 Replies View Related

OpenSUSE :: Kde And Samba Shares - How To Mount

Feb 25, 2011

From Konqueror/Dolphin is possible to access samba shares. If your computer is joined to a Active Directory domain and you use a domain user, you can access samba shares with smb://server.domain/share and you are not ask for user/pass (you use a kerberos tiquet). Kde programs as Amarok, K3b, ... can access files in samba shares without problem. But other programs, specially gnome programs (including the popular OpenOffice), are unable to use files in a samba share. If instead of using Konqueror/dolphin you use Nautilus, there is no problem because it maps the share to a local folder ($HOME/.gvfs/share in sever/) and the program are able to access files in samba shares without problems as the folder is mounted locally (as if you use cifs.mount). Its a problem to use konqueror/dolphin and have to change to nautilus to access samba shares.

If you use Windows you can mount it in an easy way. That's what I try to do from konqueror, not having to open a konsole and be able to mount the share in an easy way. I've tried with smb4k, but is has not worked for me (tried in 2 OpenSuse 11.3 and 1 opensuse 11.2). What Nautilus does when accessing a samba shares like smb://server.domain.dom/share is to execute the command: [URL]... What I try is to do the same, but just form Konqueror/Dolphin. I'd like to add a button to Konqueror/dolphin that pressing the button and if the URL points to a samba share, the share is mounted in $HOME/LocalNetwork/server/share. As I say, it can be as easy as executing the gvfs-mount, but don't know how.

View 2 Replies View Related

Ubuntu Networking :: Network Shares Not Working After Recent Update (libsmbclient )?

Sep 1, 2011

I have ubuntu 10.04. After update I performed yesterday, I could no longer access from other computers shared folders on my ubuntu machine. I checked update history and it included the following that appeared to be related to network shares:

Code:
libsmbclient (2:3.4.7~dfsg-1ubuntu3.4) to 2:3.4.7~dfsg-1ubuntu3.7
libpam-smbpass (2:3.4.7~dfsg-1ubuntu3.4) to 2:3.4.7~dfsg-1ubuntu3.7
samba (2:3.4.7~dfsg-1ubuntu3.4) to 2:3.4.7~dfsg-1ubuntu3.7
samba-common (2:3.4.7~dfsg-1ubuntu3.4) to 2:3.4.7~dfsg-1ubuntu3.7

[Code]..

I would prefer to use the latest version because it includes security updates. Does anyone know if there's some trick to getting network shares to work with the latest version of libsmbclient?

View 7 Replies View Related

OpenSUSE Install :: Samba Shares Do Not Mount At Boot Time?

Mar 12, 2010

opesnSuse 11.1, linux 2.6.27.45-0.1-default x86_64 This host has two samba shares that are located on an OS/2 server. Neither mount at boot time but they do mount from the command line.

kernel: CIFS VFS: cifs_mount failed w/return code = -6

There are 5 other client computers that mount the same shares at boot time using almost (different user/pass info) identical data. I do not see what is different about this host.

View 5 Replies View Related

Ubuntu Servers :: Auto Mount Group Shares With Samba PDC?

Mar 2, 2010

I've a few group shares setup with samba and a PDC (using windows 7 clients) and the home directory for each user gets mounted automatically. I've configured group shares and only members of the respective group have access to them, but my question is how do I tell samba to automount group shares based on the user group?

View 1 Replies View Related

Ubuntu :: Devicekit - Mount Samba Shares From Command Line?

Dec 1, 2010

Is there a way for a normal user to mount samba shares from the command line using devicekit? It seems like I remember there was a way to do it using hal, but that's been replaced by devicekit in Lucid if I've read correctly.

I can click on the shares I want in nautilus under "Network", but I'm using fluxbox and I'd like to mount a few shares at startup. I read the documentation for the udisks command, but I can't figure out how to get it to work with samba shares.

View 2 Replies View Related

Debian :: Setting Up Search And Mount Local Samba Shares?

Aug 1, 2010

I do know how to set up the traditional Window shares by modifying fstab and mkdir /mnt/share. What I was wondering in this day of laptops, if there was a script that could find and mount Window shares that were hooked into your local network, but only on a temporary bases. Something like what you would do mount a usb connection, such as a camera that you had the drivers for. I do know that networks are more complex, was just interested if something like that was developed yet. Just to let you know that my scripting skills are zero, and my ability to do so less.

View 1 Replies View Related

General :: How To Mount SAMBA Shares With Windows 95 4.0 Running With QEMU?

Feb 12, 2011

I am encountering this difficulty. I have no networking onto windows 95 4.0 which in on the linux ubuntu machine. Windows 95 4.0 has no networking..

View 4 Replies View Related

OpenSUSE Network :: Accessing Samba Shares In KDE?

Jan 6, 2010

I wonder how to get Samba share access working well...Dolphin supports Samba but it doesn't really mount anything, it seems... Non-KDE Applications therefor can't access samba that way. In Gnome there was a workaround for the same problem. You could simply go to ~/.gvfs in any application and find the samba mounted there.Is there anything like that in KDE? I set up a Samba mount via /etc/fstab for now but that is quite annoying because it fails after each Suspend, changing WLAN Access Points, etc. Then I have to go to the console and manually launch sudo mount -a to get it working again. How can I make things more comfortable?

P.S.: I'm even up for using something else than Samba to talk to my fileserver. However I don't know of anything that would work better in this regard. (NFS would have the exactly same problem for example)

View 5 Replies View Related

OpenSUSE Network :: Samba Can't Read XP Shares?

Jun 18, 2010

I followed samba setup per thread Samba and Suse: HowTo Set up an openSUSE-Windows Home Office LAN/Network. Versions 11.x and then upgraded my samba from the special repository per advice at Samba broken after latest security update 11.2 - openSUSE Forums I can now see all my boxes on the network from either an XP or linux box and I can access my linux shares from any XP box but I can't access any XP share from my linux box (openSUSE 11.2). I get an error that reads "The file or folder smb://SharedDocs does not exist"I can see the SharedDocs folder under the XP box in samba shares though. And it really does exist on the XP box.

View 9 Replies View Related

OpenSUSE Network :: Cannot Write To Samba Shares?

Sep 15, 2011

Using SuSE 11./4 on two machines. Successfully set up a server to share a folder. The client is able to read files from the folder, but not write to them.the client perspective, the shared folder permissions are read and write if owner, read only for all otherHowever, the server shared folder has been set up for sharing, and the permissions are set for read and write to all.

One more thing. When the client goes into the samba share, it sees the workgroup. Clicking into that, it sees the name of the server computer. Clicking into that,it sees two folders: "profiles" and "users". Clicking into "users" goes into the shared folder. I tried setting the permissions from the client side on the "users" folder using root privileges to allow reading and writing without any success

View 6 Replies View Related

OpenSUSE Network :: Does Not Finds Shares - Samba - Windows Ok

Oct 14, 2010

I can't for the life of me figure out why I cannot browse my own shares from my linux boxes. both run OpenSuSE 11.3 I follow swerdna's tutorials and reboot several times but don't have a clue as to whats going on to prevent me from viewing localhost shares or 2nd linux box shares. I get 'unable to mount location, Failed to retrieve share list from server' error when I click on my workgroup icon in nautilus.

View 7 Replies View Related

OpenSUSE Network :: Can't View Samba Shares In Dolphin Although

May 31, 2011

Having a bit of a minor issue with samba on Opensuse 11.4 64 bit. My problem is that I can't view my samba shares in Dolphin although I know they are there. If I bring up dolphin using the Opensuse shortcuts to samba I get this

My computers / drives attached to my network should be viewable here yet they are not. However, if I type in the address directly I can view and access my shares.e.g.

Here is a copy of my smb.conf

Code:
[global]
workgroup = farcusnet
netbios name = ThinkPad
passdb backend = tdbsam
name resolve order = bcast host lmhosts wins
printing = cups

[Code]...

View 9 Replies View Related

OpenSUSE Network :: Automatically Reconnecting Samba Shares (from Fstab)

Mar 16, 2010

Since OpenSuse 11.2 doesn't reconnect samba shares upon a resume from suspend, I wrote a small, ugly script to do so. It's placed in /etc/pm/sleep.d/66samba-remount

#!/bin/bash
case $1 in
hibernate)
echo "Hey guy, we are going to suspend to disk!"
/etc/init.d/smbfs stop ;;
suspend)
/etc/init.d/smbfs stop ;;
thaw)
echo "oh, suspend to disk is over, we are resuming..."
sleep 15
/etc/init.d/smbfs restart ;;
resume)
sleep 15
/etc/init.d/smbfs restart ;;
*) echo "somebody is calling me totally wrong." ;;
esac

and made it executable
(as root)
chmod +x /etc/pm/sleep.d/66samba-remount

The 15 seconds sleep time is useful to me to postpone the remount after WiFi is back online. Perhaps there are way more elegant ways to do so (check for x times if WiFi is on, for example), but I'm no good at bash, and this serves me well. How do I file a wishlist for 11.3? If someone puts a samba share in fstab, I'd assume he wants it connected mostly everytime (at startup for sure... so why not over a standby?) I hope 11.3 just reconnects in-fstab samba shares in a polished way, out of the box.

View 1 Replies View Related

Ubuntu :: DBus Errors When Unmount Network Shares (Samba)

Sep 14, 2010

I often see DBus errors when I unmount network shares (samba). In every instance, they unmount fine. In every instance, I notice no weirdness. Yet these errors randomly come up. There's no pattern to it whatsoever.

View 1 Replies View Related

OpenSUSE Network :: Samba Shares Stay Unmounted After Resume From Suspend

Mar 15, 2010

To workaround the kio_smb madness, I set up shares to be mounted via /etc/fstab. It works flawlessly until I suspend my laptop. Coming back from suspend, samba mounts are not being re-mounted automatically. Since I'm new to opensuse, I wish to ask you:
Is there a polished way to make this happen, in opensuse approach?
Or shall I just go and toy with scripts in the init.d (or what is it in suse)?
As much as I could figure, I checked in yast, and smbfs service is signed as "Yes".

View 4 Replies View Related

OpenSUSE Network :: 11.2 - Unable To Mount NFS Shares On Server

Jan 2, 2010

I have a Thecus NAS with nfs support running. Now I switched from OpenSUSE 10 to 11.2 on the client side and aren't able to mount my nfs shares. With SuSe 10.0 I didn't have any problems.

The /etc/exports:
/raid/home_nas1 192.168.0.24/31(rw,no_root_squash,sync,anonuid=99,anongid=99,no_subtree_check)
/raid/soundandmore 192.168.0.24/31(rw,no_root_squash,sync,anonuid=99,anongid=99,no_subtree_check)

On the client side I'm able to see the shares:
showmount -e nas1
Export list for nas1:
/raid/home_nas1 192.168.0.24/31
/raid/soundandmore 192.168.0.24/31

The client address:
inet addr:192.168.0.27

I'm using nfs-3:
mount -t nfs nas1:/raid/soundandmore/mnt
mount.nfs: access denied by server while mounting nas1:/raid/soundandmore

View 9 Replies View Related

General :: Administration - Managing SAMBA Shares And Giving User Specific Access For The Shares

Jul 28, 2010

I am working as a Linux administrator in a very small data centre with 5 servers with following routine tasks.

1. Managing SAMBA shares and giving user specific access for the shares.
2. Scheduling backup of some mount points with rsycn to store data in remote hard disk
3. User and group administration, with sudo access.
4. Creating and Managing Xen Virtual machines and giving access to other project teams.
5. Automating some tasks with Shell Scripting.
6. Managing FTP server for user uploads.

I have practiced a lot in my home laptop without RHEL training, Cleared RHCE and LPIC1. I want to do some advanced system admin tasks, but do not have option in my current data centre. With Above skills is it possible to get a job ?

View 9 Replies View Related

OpenSUSE Network :: Is KDE4 Really Incapable To Mount NFS Shares On Demand?

Jan 3, 2010

I have some NFS shares on a server (say Desktop) to which the client (Notebook) is not always connected to. Even the server is not always up. To mount an NFS share in the past, I had some Device-Link icons on my KDE3 desktop. That worked fine. Now, SUSE 11.2 comes with KDE4. The NFS shares are properly configured in /etc/fstab as usual (including 'users' option). And now the big question: What is the official way to mount my NFS share on demand as an ordinary
user?

Desktop icons are not KDE4ish. And the Device-Link method doesn't work either, because it apparently doesn't take care of /etc/fstab (i.e. the users option) and insists on root privileges. Also Dolphin is not able to mount NFS shares when I need it because it
simply does not show them. The only way to mount my shares is to perform the mount command in a
terminal session. But this couldn't be the truth with KDE4, isn't it?

View 7 Replies View Related

Ubuntu Networking :: 10.04 Can't See Shares On 9.10 Samba Server?

May 10, 2010

I have an Ubuntu 9.10 Samba file server. I have set up Ubuntu 10.04 netbook remix in a home network which also has Windows XP home and Vista computers already present in the network. The XP and Vista machines have no problem accessing the file shares.

The server is running mhddfs with FlexRaid. The security is set to share level access. I have a hosts allow line in the smb.conf file to permit access to certain IP addresses and have added the 10.04 netbook remix IP address to this hosts allow line.

I cannot access shares from the 10.04netbook remix machine if the hosts allow line is active, but have no problem from the windows machines. If i comment out the hosts allow line, all machines can access the share, including the netbook remix machine. I am fairly new to Linux and would appreciate any help in solving this problem.

View 1 Replies View Related

Ubuntu Networking :: Samba Shares Not Accessible On OSX?

Apr 26, 2011

I have setup Samba shares on my Ubuntu 10.10 and assigned different different username and password combination for each share.

The sharing works perfectly fine on all the Windows machines but it does not work on OSX. When I try to connect using OSX, it ends up showing waiting icon (screenshot attached) after entering username and password. (It asks for the login details after selecting the share from the list)

Following is my smb file content:

Code:
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the

[Code].....

View 8 Replies View Related

Ubuntu Networking :: Cant Access Samba Shares?

May 31, 2011

find that i cant access from my ubuntu box (desktop), now running 11.04 (i was able to access yesterday, when i tested the config). I CAN access from my XP and Win7 virtualboxes.and also from another win7 on the house.. So server is working good aparently.This is all i modified from the default config file:

Code:
####### Authentication #######
# "security = user" is always a good idea. This will require a Unix account

[code]....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved