Ubuntu Networking :: Setting Up Samba For Windows 7 WITH User-login?
Oct 25, 2010
I am currently attempting to setup Samba 3 (installed) for a basic home-network file-sharing server via Ubuntu 10.04. It seems like (based on my extensive googling and research) nobody wants or has a configuration like I do, but surely SOMEBODY knows how to do this.
The following is my goal for a basic setup.
Folder 1 (share is called "Read-Write"):
-Users from Windows 7 can see, read, write, execute, create, or delete any files and folders in Folder 1 as they so desire.
-Users can accomplish all of this from as "guest."
Folder 2 (share is called "Read-Only"):
-I can log in as my user to see, read, write, execute, create, or delete any files and folders in Folder 2 as I so desire.
-People other than me can log in as "guest."
-"Guest" users from Windows 7 can see, read, and execute programs as desired.
Things I have accomplished:
-Directories exist
-Directories are browseable via Windows 7
-My user has a password for Samba (assigned via "sudo smbpasswd -a matthew)
Things I have not yet been able to accomplish:
-Configure Folder 2 so that Samba asks for login credentials when someone tries to access it SO THAT I an use my Samba user to log in.
-Configure Folder 2 so that, when I log in as my Samba user, I can see, read, write, execute, create, or delete any files and folders in Folder 1 as I so desire.
-Configure Folder 2 so that Windows 7 users can easily access it as guest to browse, read, and execute files and folders in it.
-Configure Folder 1 so that any Windows 7 user can easily access it as guest to see, read, write, execute, create, or delete any files and folders in Folder 1 as they so desire.
- My laptop, with Ubuntu 10.04 - My PC, with Windows Seven
When I try to access my shared files ON my PC FROM my laptop, Samba ask for a password. I typed my Windows Seven login/password, pressed OK... and again, Samba asked for the password. I thought the problem came from Windows Seven, not allowing remote access from a local user account... I tried to allow anonymous access on my PC, but it didn't help...
But then, I learned I could also mount my shared files by adding a line in /etc/fstab :
In the cred-file, I put the exact same login and password then before... and bingo, it works.
But the problem is not fully resolved, as I can only browse files from the "mounted shortcut". I can't use my remote printer anymore, or access any external HD that I share on my PC So I really need to get samba working.
I have a Samba installed and configured on a Ubuntu Server 10.04 box, as a file server, not as an PDC. And I have several Windows 7 machines accessing the Ubuntu Server to store files.
I would like to let users to change their passwords from windows.
ubuntu 9.04 and win xppro i've been pounding my head aganst this for hours now. reading anything i can find samba works mostly shares created from nautilus work fine from both ubuntu and windows if i check to allow guest access if not i can not log in it does work in the nautilus browser fine. shouldn't make a difference but am using a virtualbox win xp guest shares work without issue. printers work here is a dump of my service defenitions
[global] workgroup = HOME server string = %h server (Samba, Ubuntu) map to guest = Bad User
I installed CentOS 5.2 and then run yum update. I configured this server as LDAP/Samba primary domain controller. LDAP seems to be OK and for testing I am able to create users with:smbldap-tools useradd -am usernameI can ssh into the server as root and also as a Linux user which was locally created in the server. But ssh into the server as LDAP user fails (from a Fedora 11 machine) with "Permission denied, please try again", prompting again for password.Some data:
Is there a way to set a disk quota for samba users? I've found a few guides, but they were a little to complicated for my needs. Running Ubuntu server 9.10
I have a Samba server and it works except other users can't connect to it. The admin account can connect to the share fine but when I add other users they can't connect.These are the commands I used to make and add users
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 can't seem to connect to it when using windows 7. Both are in the same workgroup (W0RKGR0UP) and I have set DHCP address for the ubuntu box. Is there any other thing that I would still need to edit ? My router address is 192.168.0.1 and the fixed ip for ubuntu box is 192.168.0.103.
I'm trying to load a HP Proliant w/ Fedora 11 and setting up as a WFS using Samba. However, I'm a bit confused on how to do it. Right now I have 2 36.4GB drives in RAID 1+0 and 4 146.8GB drives in a RAID 5 config. I wanna use the smaller drive for the OS and the bigger drive for the storage. I've managed to load the OS fine, the problem is I can't figure out how to mount the 4 146.8GB drives as a single logical volume and set Samba to use it. Right now all the RAIDs are setup using the built-in Compaq Smart Array utility (or whatever it's called) that's built into the SCSI hardware or BIOS.
I wanted to set up Computer Lab. loading Fedora 11 OS and one system acting as a Server to store Users(Student) Login Informations. When students do a programs, all programs (eg, C++ programs) files should be saved in the local fedora system but when login to the system, the login should be validate by a Server System.
I wrote a little script that will automatically mount two Samba shares to my home directory and I was wondering if a) You guys/gals had any input as to how I could improve on this script and b) Tell me how I would go about having this script automatically execute when I log on via SSH.
Code:
#!/bin/sh mount -t smbfs -o username=Myuser,password=Thepassword //192.168.1.102/Data1 /home/user/Data1 mount -t smbfs -o username=Myuser,password=Thepassword //192.168.1.102/Data2 /home/user/Data2
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 have a samba server with security user. I have a number of shares inside the share with different users logins. But while accessing the shares from windows, in the login prompt, by default username it takes as the guest. How will I disable the default guest user login ?
I'm trying to set my openSUSE desktop up to use the printers on my office network via Samba. I managed to get it working in 11.2 but 11.3 is giving me some trouble.I am able to access the printers and use them but I have to enter my network credentials each time I print. In 11.2 I was able to "save" my username/password and was not required to do this. Are there any Samba packages I need to add in addition to the basic ones? There seems to be a lack of documentation on this particular subject, most is concerning Windows clients printing on Linux print servers.
I have update my linux server from mandriva 9 to mandriva 2010
I was working using samba 2.2.8 and now I have samba 3.5.3.I have transfer all passwd and smbpasswd to new linux.I have convert smbpasswd to tdbsam
when i am using win xp to logon on samba domain the windows XP does not load profiles from samba. I think that the problem is NTUSER.DAT storing in /home/user/profile
The same profile is working using samba 2.2.8 but not working in samba 3.5.3..
I recently installed ubuntu on one of my computers and am trying to get all my sharing worked out so I can access stuff with my windows machine. I'm still very stupid when it comes to linux.
Setting up sharing with Samba, I got my /home/user/media folder to share just fine. However I made a folder located on my second drive that I would like to share.
the second drive is mounted on /media/Sifl_80GB and it was formatted as ext4.
My windows machines see the 80GBshare entry but I get the error "network path not found" when I try to open the folder. Does this mount need to be listed in my fstab for this to work correctly? I'm noticing something in the comments of the smb.conf for auto-mounting a cdrom drive when a cdrom drive is accessed by adding a fstab entry, so I'm wondering if this needs to be done with my second drive?
I'm using Windows 7 & Debian Wheezy,and samba is the software that I use to share the folders/files for Linux & Windows.
The issue is one of my users(nv) cannot login to her folder in Linux using his windows credentials(the password keep prompt).But If I'm using my windows password she can access to her linux folder.But it is a temporary solution as when she restart the pc,the password authentication will prompt again.
This is my smb.conf file: ============================================================================================== # # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options most of which # are not shown in this example
I have set up Samba to act as a domain login for a Windows 7 PC. The Windows 7 PC has the two correct registry compat entries.
So, I've added "root" to smbpasswd and the Windows machine tries the "LINNIS" server. Authentication is successful, as stated in the Samba log but the Windows machine fails with the following:
"The specified computer account could not be found. Contact an administrator to verify the account is in the domain. If the account has been deleted, unjoin, reboot and rejoin the domain."
I feel like I'm doing something dumb, but the authentication passed so what is it talking about?
I want to use samba for file sharing like on a Windows home network. Actually they are all Linux machines but nfs is too complicated. On my host machine I installed samba and system-config-samba. I created a new share for /home, check marked writable and visible and put access to everybody. For preferences-->server settings--> security the "authentication mode" is set to user, encrypt passwords is no, and guest account is no guest account. Under preferences-->samba users I added myself as a user with the same windows user name as my Linux user name and the same password.
My client is a virtualbox fedora (used for testing purposes but actual clients will be real computers on my home network). I entered the address smb://192.168.1.184. When asked for the user name and password I put my regular user name and password since that was what I set in samba users. However, the password dialog keeps coming up and won't let met into my own computer. If I quit it says something like access is denied. How can I get my home network back? I liked this feature when my home computers ran XP but I switched them to Fedora 12.
So here is what I'm trying to do: I want to share a folder and have it so that guests can access it, but only read. I also want to make it possible that I can mount it as a network drive on my Windows 7 machine and login with my linux account so that I can have write access. This is from a completely stock Ubuntu 8.10 and Samba config. Everytime I've tried I've failed to get it working.
i'm trying to set up samba so that i can connect to the printer in the den since we have wireless access. also, i can see my virtual box on the windows xp home ed desktop, but can't access it.so, how do i go about setting up samba so stuff is visible between my ubuntu machine and my families windows orientated network? i'm having a hard time finding anything on videos too. i'm taking a break from the remastersys stuff so i can get the more important things done, such as connecting my ubuntu machine to my families windows network. i don't know if the printer is wireless or not, but regardless, i can't find it.
First let me say that Lubuntu is a lightweight version of Ubuntu, so there is not much point in loading it up with unnecessary packages. If you just want to share printers on a Linux network, you don't need Samba. And if you just want a way that users can "push" files to others on a network, use Giver (+ Avahi) as this is a better option. Especially as it sorts out file permissions for you.
To enable file sharing on a Lubuntu 10.10 machine, go to Preferences > Synaptic Package Manager and add the following:- * samba * system-config-samba * gvfs-bin * gvfs-backends ...accepting any dependancies, 11 packages in total.
I suggest you re-boot now. As an initial test, go to file manager (pcmanfm) and enter:- smb://localhost You should see the local print$ folder listed.
To access folder shares remotely * open file manager (pcmanfm) * enter the IP address or computer name of the machine you wish to access e.g. smb://192.168.0.99 or smb://print-server
To share a folder:- Go to: Preferences > Samba (enter password when requested) In the Samba Configuration screen:- * File > Add Share * use Browse... to select folder to be shared * Tick "Visible" and (if required} "Writable" * In the "Access" select "Allow access to everyone" Set the Linux permissions:- * locate the folder to share in file manager * right click on the folder and select Properties > Permissions * set the required permissions, e.g. Other: Read & Write (to allow anyone full access)
I'm trying to set up an old computer that was donated to my by an aunt to hold my external hard drives and use it as a file server so i can use them from anywhere within my house. However I can not seem to get the samba server to broadcast/be seen by my ubuntu installation, nor my windows installation.
I've read the manual, to an extent, but I feel as if I am missing something. All I want is to have it to where I can just type in \server and bring up my files to access without having to worry about passwords.
I am experiencing strange difficulties with Samba. The permissions aren't set correctly, when creating a file or a folder on the mounted samba share.
My smb.conf looks as follows: Code: [shareOffice] path = /home/shareOffice writable = yes browseable = yes create mode = 0777 directory mask = 0777 force create mode = 0777 force directory mode = 0777
Now if I create a regular file on the folder: Code: touch testFile; ls -l The permissions turn out to be: Code: -rwxr-xrwx 1 simon share 0 2011-06-28 21:42 testFile
Why the w bit on the group is missing? If I play around with the create mode / force create mode, I get every other possible permission output --- except the write access for group members.
I recently used this process to connect my Samba network to be able to access and allow Windows XP machines to access my computer on my office network.
For various reasons, all the XP computers on the network are set to fixed (do we say static?) IP addresses with manual DNS. Hence I realised during the Samba setup that I had to set a static IP on my Ubuntu machine similar to my Windows static IP's (ie 192.168.10.?) in order to be able to see the Windows share PC's properly.
Once I set my Ubuntu machine to static IP of 192.168.10.3 with subnet of 255.255.255.0 and gateway of 192.168.0.1 then I was able to access and be accessed by PC's on the network. However I couldn't access the internet after this. I input the DNS server in the edit connections as you can see per the attachment. All these settings (except the IP address obviously) were all now exactly the same as the PC machines, and I thought I'd now be able to access the windows network, as well as have access to the internet, however, even though my wired network is connected there is still no internet access.
I'm using the GUI under network connections to make all these changes if that is important. I can't understand why this doesn't work?
I have a home network with Ubuntu (3 PC) Windows (XP 3, 7 1 vista 1) and Lacie networked drive. I have successfully edited fstab to mount the lacie drive at startup on my main ubuntu PC and it works a treat. My problem is setting up the Unbutu PCs to browse the workgroup. This was working but now (since my last update of Unbutu I think) I get prompted for a password and no matter what I do it does not let me browse.
Now I have read a few things on Samba and do not have the time or ability to become a network engineer. All I want to do is is have on my Ubuntu the same browsing ability that seems to come out of the box in Windows.
I am using Ubuntu 10.4 LTS and Samba3.4.7.I have read a lot of posts and different web pages on setting up Samba on a Peer-to-Peer network with Windows XP but just cant make it work. I can see the Guest account in XP My Network Places but cant access the folder when I click on it.Network not accessible or you dont have permission. I can PING both ways ok. I have Firestarter turned OFF and I dont have any third party firewall on XP.
This is my samba config file:
[global] netbios name = dolphin server string = Ubuntu workgroup = WATERLILLY - same as XP