So I setup the newest Ubuntu on my old desktop on a 30g HD and have 2 200G HDs with a ntfs file system on those two. I got SSH and FTP configured, then went on to setup Samba.I have it (seemingly) set up well. /dev/sb1 gets mounted on /data1 /dev/sc1 gets mounted on /data2.I want anyone connected to my router to be able to see this machine and be able to read and write to both shares.
I configured WINS on my laptop to point to the linux box. and i've seen the pc in question (TECH-PC) in "My Network Places" on both of our laptops.Long story short, I try to connect to my network share and it says i don't have permission and i need to contact my network admin. This computer is the only one with Linux installed, the rest are windows-OS.Let me know if you need more info, pretty stumped here, have searched, read, scrapped my install and started from scratch, maybe i need to sleep on it
Can anyone point me in the direction of setting up shares for windows machines on centos. I have found a few document but never managed to get it up and running correctly. I need to be able to get access to subfolder etc for different users. Is there any way of doing it with some sort of gui?
I can't be the first one with this problem. What am I missing?
I have setup Samba servers in the past, just none under SELinux. The last one I configured was a couple years ago, so I wouldn't doubt I'm a bit rusty.
---- Environment summary: Clean server install of CentOS 5.4 includes SELinux - lets call this 'server' - updated samba to 3.0.33-3.15.el5_4.1
Client1 - Windows XP sp4 - WINS configuration uses 'server' noted above Client2 - Windows Vista - WINS configuration uses 'server' noted above
---- What works / what doesn't ------ Clients can see the server (XP and vista) in network neighborhood. The following does not work from windows (xp or vista) net view net view \server net view \server-ip net view \servershare
This does work on the server smbclient -L \server smbclient -L \server --user validuser smbclient -L \client1 --user validuser
---- What I have configured and tried (config/output below) -------- firewall ports for samba are open SELinux enforcing or permissive file context is set on share samba booleans are set
***firewall -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p udp --dport 139 -j ACCEPT
***SELinux mode/booleans # sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: permissive Mode from config file: enforcing Policy version: 21 Policy from config file: targeted
# getsebool -a | grep smb allow_smbd_anon_write --> off smbd_disable_trans --> on
# getsebool -a | grep samba samba_domain_controller --> on samba_enable_home_dirs --> on samba_export_all_ro --> off samba_export_all_rw --> off samba_share_fusefs --> off samba_share_nfs --> off use_samba_home_dirs --> on virt_use_samba --> off
I'm trying to connect to a Samba share on a VirtualBox'ed Windows 7 that is connected to an openSUSE host in bridged mode. For reasons beyond my comprehension I cannot use the shared folders feature, so I'm using Samba instead. I configured a share through openSUSE's Samba server configuration tool:
[iTunes] inherit acls = Yes path = /home/myusername/iTunes read only = No valid users = myusername
I also set a password for this user using smbpasswd -a myusername. I can go to smb://192.168.1.6 on the host machine and log in to the share successfully, but on Windows 7 I see this: What am I doing wrong? I can connect to the shares list without any problems. It's just the login that doesn't work.
Update: I noticed that my Samba server is part of the WORKGROUP domain.
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64] Sharename Type
I have a problem with 'Samba' shares on Ubuntu 8.04. Bringing shared folders over from Windows (on another computer) is not a problem...until I try same process with a Windows backup folder holding .tib data from an 'Acronis' backup.The files appear in Ubuntu Network, everything looks o.k., Ubuntu just won't copy the data to another folder. Other shares work without a problem, its only with these ':.tib' data.
As the subjects states, I cannot see my windows 7 shares from any of my *nix computers. I tend to over complicate things and I may do so here, but I want to try and be as thorough as possible in explaining the situation. I'll state w/ the basic layout of my lan code...
[Administration] comment = Administration path = /home/adm valid users = adm public = no writeable = yes browseable = no
We have two samba users: samba and adm. The first is used to connect to Storage and Backup shares, and adm is used to connect to Administration share. There are two problems:
1) If Storage and Backup shares are connected to a Win7 box, the Administration share cannot be connected. All we get is an error saying that that share is already connected with different username. 2) We have managed to work around this by connecting the Administration share with the IP-address of the server instead of it's name(?!). The problem then becomes that sometimes connecting Administration share this way makes Storage share read-only. Not always though.
Wrong "security" type in smb.conf (was "user", needs to be "share"). For some reason the Storage share still occasionally gets connected read-only. Win7 also tends to forget the passwords/usernames for some shares upon reboot (not all of them, though).
I am in the process of migrating my small workplace to a basic spin i've created of f14. Everything is suave but some file browser windows eg: file upload in gmail, hotmail etc, does not show my samba shortcuts i've created nor even the option to browse the network in the "places" section. It shows other locally created shortcuts but no samba ones. Just to test it, even creating an ftp:// shoftcut yeilds no dice. I had a quick search through the forums and I couldn't find anything. I have a feeling this has an easy solution that my inferior brain cannot comprehend! Loving F14 on my macbook pro and so are my employees in my office! Feels much less bloated than Ubuntu IMHO.
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.
Fairly new to Karmic - wanting to setup some Windows Shares on an external Hard drive. I understand that I need to install Samba to do this but when I try to install it I get the following message:-
pat@CCBC-13112:~$ sudo apt-get install samba Reading package lists... Done Building dependency tree Reading state information... Done Package samba is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: samba-common-bin smbclient samba-common E: Package samba has no installation candidate
I setup shares on a fresh install of Ubuntu 9.10 via the shared folders application from here: [URL]. The shares are visible on my vista laptop but when I go to open them I get an error "you might not have permission to use this network resource". I set the smbpswd to nothing via the method in the above article as well and my /etc/samba/smd.conf has the follow lines:
 path = /media/Secondary Storage available = yes browsable = yes public = yes writable = no
 path = /media/New Volume available = yes browsable = yes public = yes writable = no
I am using Ubuntu 9.1 and want to connect to my other computer (win 7) on my home network. I installed Samba...and it sees the 'windows network'...then it sees the pc I want to connect to, but when I try to dbl click on its name, I get 'unable to mount location, failed to retrieve share list from server'. There are at least 8 publicly shared folders on that PC that other Windows pc's can connect to without problem.
Been trying to deal with this one for some time, and still not sure it's more or an issue on the Samba or Win 7 side.
Running Ubuntu 10.04 with Samba 3.4.7, using Windows clients from 2000 on up to access shares.
2000 and XP have no trouble both connecting initially to shares, but upon reboot the shares are disconnected and do not automatically reconnect unless one of them is double-clicked on. Passwords and mappings are saved such that Windows tries to reconnect upon restart. When manually reconnected in this way, shares remain open as they should. This isn't a big issue, but it would be preferable to have these shares reconnect so that links and shortcuts across the LAN work right from bootup.
The bigger issue is with Vista/Windows 7 - When shares are set up with appropriate passwords and such on the clients, they work as expected, until the client is rebooted. After signing into windows 2 things are observable:
- Black screen for 2-5 minutes before desktop appears
- error message appears when you try to double-click on a mapped share (even with a saved password) that the connection cannot be restored.
If you go into credentials manager and delete the saved password for the share(s) on the samba server, you are prompted for the password when you try to open any of the shares - reenter it and you're then fine until the next reboot.
There must be some issue with the persistence of the saved password, but not sure if this a Windows-side issue or not. Read some other info on this, and had to make the following changes earlier to even get Win 7 clients to connect to samba at all:
It appears that when Win 7 starts up, it simply can't connect using the saved password, and the desktop doesn't come up until the reconnecting action(s) time out (if you disconnect your win 7 machine from the network the delay is not present).
It's not a game-breaker, but really annoying when rebooting having the delay and reentering the network share password(s).
I had an older fedora box (I think it was Core 3) that acted as my file server in my small network (4). It worked fine when I had all XP clients connecting to it. Recently we decided to get all new computers. So now I have a fedora 10 box acting as my file/print server and all Vista Home premium computers as the clients. For the life of me I can not get samba to work. When I try to map the network drives on windows it will not let me authenticate. I install swat and try it that way, still no luck. Here is a copy of my smb.conf file:
Code: # Samba config file created using SWAT # from UNKNOWN # Date: 2009/05/19 21:47:31
[global] workgroup = AIVILANET server string = Bighat Samba Server interfaces = eth0 null passwords = Yes smb passwd file = /etc/samba/smbpasswd passdb backend = tdbsam username map = /etc/samba/smbusers syslog only = Yes announce version = 5.0 name resolve order = hosts wins bcast socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = CUPS wins support = Yes
[HP-LaserJet-1200] comment = HP LaserJet 1200 path = /var/spool/samba read only = No printable = Yes printer name = HP-LaserJet-1200 oplocks = No share modes = No
[printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No
[home] path = /home/savona/ username = savona valid users = @Users admin users = savona write list = savona force user = savona force group = savona read only = No hosts allow = 10.0.0.2
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.
I am running Ubuntu 10.10 and have 5 shares that I have setup for Samba (assume names of share1, ..., share5). I find that shares(2,3,4) are accessible from my MS Windows system, but the share1 and share5 are listed but Windows gives an error accessing them that I may not have permissions.I have reviewed the sharesve the same owner, group, and permissions.Is this a known Samba bug or configuration issue? I have gone through the smb.conf file multiple times as well as examining the directories and do not see what the issue might be.
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 ?
I am running Linux Ubuntu 10.04 and I currently have this computer and another Windows 7 PC connected together in the same workgroup. When I look at the Network on the Ubuntu File Browser, I can see the windows 7 pc there, but when I try to open it, I get the message Password Required - it wants a username, password and domain (the domain box is filled in with the workgroup name). Whatever set of credentials I try to input, the box just pops up again asking for password. Password protected sharing is disabled on the windows 7 pc and I have even tried disabling Windows firewall to no effect. I am very new to Ubuntu and Linux and am therefore completely stuck - what I really want is to access a shared printer connected to the Windows 7 pc from the Linux machine.
We have an existing Windows 2000 network that I am trying to add an Ubuntu 8.04 server to. I have put links into the windows domain DFS to the linux machine's samba shares.
The shares work fine for local users that are physically on the same network (192.168.0.X). Remote users from other offices or dialing in with a vpn client can not access the these particular folders off the DFS. However, they can map them directly from the ubuntu server.
I have an Ubuntu Server 9.10 box running Samba 3.4.0. It has 4 shares, one of which is a CIFS connection to an XP machine, another of which is a password protected share. All the shares work fine and well. However, lately the client has called to say that "everything's hanging and freezing" when they browse the shares via Windows Explorer (approximately 30+ PCs on network, variety of XP, Vista and 7 OSes).
Not all users always experience the problem, and I remote in to test when I hear this via an XP machine, and today for the fist time I also experienced this problem - browsing literally sticks and hangs. No entries in PC's eventviewer. They are running on Netgear switches, all the same age, a couple of months old. A simple reboot and and everything's fine again for an indeterminable time, then I get another phonecall and an unhappy client on the end!
I have a machine acting as a gateway for a private network. While it can ping hosts on that private network, I can't use samba (smbclient or smbmount) to access shares on hosts on the private network from that machine. Other machines on the private network can access shares on other machines - just not the gateway server.
Here's how the gateway is configured:
When I try to connect to ports 139 or 445 (via smbclient or smbmount) the mount() system call times out. As I mentioned above, I can ping those hosts, so UDP packets work but TCP packets seem to get blocked or lost.
In the last couple of weeks I was trying to work thru some issues regarding access from my FC11 box to my WinXP box over the local network (Have had no problem using Samba to go the other way). I was trying to use smb4k and couldn't seem to make it work. Maybe that's because I use Gnome as my desktop (tho, I would guess that the install of smb4k would include necessary dependencies for KDE).I went back to this problem today and figured out how to access the window shares using Gnome Connect to Server function (Have tried it in the past but must have been doing something wrong). I now get the icon on my desktop and the appropriate listing in the Place menu.
What I notice is when I click on the icon (or select the share listing on the Place menu) to open the "folder" I get a duplicate of the icon on my desktop and duplicate listing on the Place menu. The window opens with access to the folder without any problem. If I close the window, it does so just fine, but I'm left with the duplicate icon and menu listing. To get rid of these "extraneous" items, I need to unmount the volume. Then the extra icon and Place menu listing are gone. If I already have opened the window and incurred a duplicate icon, etal., even if I close and then open it again, no more duplicates are added.Is this normal or is there a setting I need to change to keep this duplicate from happening.
Running Ubuntu 10.10 M-M..Running Network, my machine sees my Windows Workgroup, and even the machines on the workgroup. When I try to access those machines, I get a message "Failed to retrieve share list from server." I've been able to mount other machines by using straight IP accesss, but that is of little use since IP addresses are not Static.
My first post, having only installed 11.04 at the weekend on one of my old PCs.Everything is up & running pretty well, I have a 100BT home network with 4 Windows XP PCs and a Synology DS211j server.I can see & access these other shares from Ubuntu, but it's so slow to connect, approx. 45 seconds each time, compared to almost instant from any of the XP machines.Could someone suggest how this performance could be improved?
This is a bit of a shameless cross-forum bump, as I'm really trying to crack samba in the hope of getting some server action going, and this is the closest I've been to actually understanding what I'm playing with. "Well, I've lasted a lot longer than usual before resorting to asking around, but I've finally gone delightfully mad. I've been trying to access shares based on Windows 7 Ultimate with limited user access on said shares. I've managed to get into my XP machine, another mate's Vista machine and various Linux boxes with no issues, but that's only for shares that are accessible by everyone. The moment I try to get into a share that requires user credentials, I get "Error returning browse list: NT_STATUS_ACCESS_DENIED"
If I try to access restricted shares (be it machine or folder) through Nautilus, I will get a user logon prompt, but it fails. Using smbclient results in just as little success, and now I'm munching through O'Reiley's Samba manual from '99, after realising that I need to basically learn Samba in its entirety to have a hope in hell at getting this to work. The trouble is though, every HOWTO and relevant forum post I get my hands on all seem to concentrate more on the server side of things, and usually servering from a linux box, not the other way around as I'm trying to.
The above Windows 7 machine won't even allow me to view its share contents, whereas the XP machine will allow me to browse, but won't allow me to access folders with restricted access. I'm pretty sure there aren't any major issues with the way the Windows 7 machine is setup, as it can be accessed with logon from my Xbox, Ubuntu machine, XP and Vista, with only Fedora having problems getting in as it constantly fails logon. What I'm trying to establish is, if Ubuntu can get in, is there something in my Fedora samba config I'm missing that's preventing me access? My thanks in advance to those of you who've been able to put up with me rambling"As you'll see in my original fedoraforum post, the workgroup misreport issue mysteriously fixed itself after a few updates, although I'm inclined to blame my mate's Win 7 box...call it force of habit, I've just generally come to mistrust an OS that tries so diligently to shift focus away from its shell.
I recently replaced my windows fileserver with one running Ubuntu. One thing I've noticed (which is a annoying) is that when I copy files between two samba shares from my windows machine, it copies the file through my PC to the new destination. On windows shares it just did some sort of local copy (ie it took about 2 seconds) rather than 3-4 minutes. Is this the normal behaviour, is there any way around it on Linux