Ubuntu Networking :: Samba Configuration And Setting Permissions

Nov 16, 2010

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)

View 7 Replies


ADVERTISEMENT

Ubuntu Networking :: Samba Setting Permissions Not Correct

Jun 28, 2011

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.

View 3 Replies View Related

Server :: Setting Up Samba On Ubuntu - Permissions?

May 20, 2010

I'm attempting to set up a Samba share on my lab's small server (Ubuntu Server Edition, 10.04). It looked easy enough, but the share that I set up didn't allow anyone to actually put anything on it: no uploading stuff, etc. (You can still upload files via the command line, so I implemented the unix extensions = no fix). The share is writeable and visible, and anyone can access it (according to the Samba GUI). According to the smb.conf:

[Share]
path = /home/something/Share
writeable = yes
;browseable = yes
guest ok = yes

The other Windows machines in the lab see the new server and its share automatically, although they can't make changes to it, like create a new folder in the share. Most of my lab uses Snow Leopard (OS X 10.6), and a few others use Windows. I can connect to the server using my MacBook either through the terminal or Finder -> Go -> Connect to server -> smb://blah.someplace.edu without problems.

I can do pretty much anything via the command line, but not through the Finder! If I want to create a new folder, it gives me an old-school error message (stupid blue face): "The operation can't be competed because you don't have the necessary permission." If I want to drag-and-drop a file from my desktop to the Share folder, I get a pop-up window (lock + blue face): "Type your password to allow Finder to make changes." If I do, then I get another pop-up: "One or more items can't be copied to "Share" because you don't have permission to read them. Do you want to copy the items you are allowed to read?"

View 3 Replies View Related

Debian Configuration :: Setting Permissions For USB Device On Boot?

Mar 23, 2011

I am trying to figure out what needs to be done to automatically set read/write permissions for everyone for my proprietary USB device on system boot. I have created a udev rules file which changes the permissions for the device when it is connected, but it does not change the permissions when the system is booted with the device already connected. The file looks like this:

SUBSYSTEM=="usb_device", SYSFS{idVendor}=="our vendor id", MODE="0666"

Does something else need to be added to the rules file to make it work when the system boots with the device connected? Is there some other script which needs to be created somewhere?

View 1 Replies View Related

Debian Configuration :: Setting Up A CUPS/Samba Shared Network Printer?

Aug 19, 2010

how to get clients connecting to an office printer. during a migration from windows server to debian/samba.

We have:

5 windows XP machines one Windows Server 2003 machine, PDC of the old domain One debian Samba PDC (of TEST domain)/print server (with CUPS installeD) running in a virtual machine hosted by the windows server One Toshiba eStudio 3511 printer

Using the CUPS control panel, I've been able to autodetect and add the printer, and it appears as an available share in SWAT for samba. However, the driver isn't perfect. CUPS could only supply drivers for the 3510c, not the 3511.

However, clients on the TEST domain are unable to access it. Doing so gives an error about a local policy preventing a connection to the print queue. I've tried googling this error and the fix that comes up in every result about changing a point and print policy setting, does not work.

however, I've been able to work around the issue. by first logging in as local administrator, navigating to the domain server, then inputting the domain root account credentials at the prompt. That allows me to attempt to connect to printers, but with a different error

"The server for the printer does not have the correct driver installed...."

I very strongly suspect that the 3510 driver actually will work, but it's just not being shared properly. The printer driver share folder is /var/lib/samba/printers, and that directory contains only a few empty subfolders. CUPS did not place the driver there as I would expect, and that is where clients are looking for it.

The thing is, I have no idea where CUPS DID put the driver.

On the old domain, the printer uses drivers for es4511, and looking on the toshiba site, this seems to be what they provide. The Toshiba Site provides a huge variety of drivers, including several windows ones, a universal driver, and a CUPS PPD. Cups asks for an optional PPD during install and I tried supplying that. It said installed successfully, but didn't change anything.

I've tried pasting the windows drivers into /var/lib/samba/printers/W32X86 too, and likewise with other drivers from toshiba's site. but this doesn't change anything either, so I'm at a bit of a loss.

how to install/setup drivers on a samba PDC, for windows machines?

Also relevant, my smb.conf:
anyone see any possible causes of problems?
# Samba config file created using SWAT
# from UNKNOWN ()
# Date: 2010/08/19 13:03:07

[code]....

View 12 Replies View Related

Ubuntu Networking :: Can't Get Permissions In Samba Share?

Jun 6, 2010

When I create a new folder on my ubuntu machine and share it with my windows 7 machine using 'net usershare add <dir> <path>', I can't get write perms in Win 7. It keeps giving me a "You need permission to perform this action'. I've chmod the folder to 777 but still no luck.

The funny thing is, it was all working fine until I tried to add a new usershare yesterday (Can't think what I've changed). I use this sharing method to share all of my development /var/www/ folders so I can work on them from my win machine.

I have had a few problems with my samba smb.conf, and it nuked and rebuilt yesterday. I'm fairly new to the Linux game, and this permissions problem has me baffled.

View 1 Replies View Related

Networking :: Samba Configuration - Cannot Mount Samba Share

Apr 26, 2011

Start>Run>\192.168.0.1storage gives me "The specified network password is not correct." It lists my domain as "ANTEC" which is the name of my computer, though I've changed the workgroup to WELLS. I've run:

setsebool -P samba_domain_controller on

Trying to connect to samba locally gives me this:

Code:

[tedward@hp-firegate ~]$ smbclient //192.168.0.1/storage -Utedafur
Password:
session setup failed: NT_STATUS_LOGON_FAILURE

[code]....

View 6 Replies View Related

Ubuntu Networking :: Samba Share With Differing Permissions?

Sep 9, 2010

what I am trying achieve is read/write access for my MS domain account and read-only access for everyone else. In smb.conf I have this:

Code:

map to guest = bad user
usershare allow guests = yes
username map = /etc/samba/smbusers

[code].....

I can access this fine with my MS domain account, what I can't work out is how to give others read-only access to the same share. I guess I could create a second share for the same folder with a different name and permissions, but that seems a bit clunky and I'd have to remember to pass on a different name to the one I am using. I also tried using the Nautilus right-click "Sharing options" and then setting the folder permissions. This works fine for giving others read-only access, but loses capitalisation of the share name and doesn't seem to recognise my MS domain account as being valid.

View 1 Replies View Related

Ubuntu Networking :: Samba Server And User Permissions

Dec 30, 2010

I have a Samba server running on a box where I login to admin as user:
FRED
The Samba users are
SUE
JOE - Read only for specified paths (media playback access only user)
SUE can read/write to any directory under the share: Media

So all that is working fine. As long as I do file operations remotely as SUE everything works remotely. How can I make it to where everything SUE does over Samba FRED automatically has permissions to edit when logged in locally (or SSH)? Also, remember, Joe needs to be able to read where specified.

View 3 Replies View Related

Ubuntu Networking :: Losing Permissions On Samba Mount Points?

Jul 8, 2011

I have an Ubuntu 11.04 laptop that I use to connect to a Windows 7 server. Everything was working fine until the hard drive on the server crashed and it was replaced with a backup. Now I intermittently lose access to the shares with Nautilus giving me the following message:

"The folder contents could not be displayed.You do not have the permissions necessary to view the contents of Folder"

When I look at the mount points in terminal I see the following:

drwxr-xr-x 5 root root 4096 2011-07-08 13:12 .
drwxr-xr-x 23 root root 4096 2011-05-03 11:17 ..
d????????? ? ? ? ? ? Folder

Where Folder is the mount point.My fstab looks like this, although I must point out that I have tried virtually every possible permutation with no change.

//10.35.1.110/Share /media/Folder cifs rw,_netdev,iocharset=utf8,credentials=/root/smb/credentials,uid=1000,gid=1000,noperm,file_mode=077 7,dir_mode=0777,sign 0 0

Sometimes the permissions will revert back by themselves, sometimes I need to umount and mount to get back in.I have tried deleting and recreating the mount points. No change.It is driving me up the wall, I have tried everything I can think of, installing/uninstalling winbind, the fuse modules etc etc. I use this machine as a production machine in a heterogeneous environment and everything works awesomely except for this. I love Ubuntu, I can't even think of booting Windoze these days but not being able to access the network shares is a right show-stopper for me.

View 9 Replies View Related

Ubuntu Networking :: Grant Write Permissions For Samba Shares

Aug 27, 2011

I have a Natty headless server that I would like to set up shared directories and grant specific users write permissions. I use a Windows 2008 R2 machine with Active Directory for authentication and have created a group GroupWithWriteAccess which I want to have write access to the shared directory. I want all other users to have read only access. I have edited my smb.conf file with the following

Code:
[TV]
path = /media/share/Media/TV
writeable = yes
write list = primaryuser @GroupWithWriteAccess
create mode = 0660
directory mode = 0770

The machine is fully setup to work with Windows authentication and I can access shares from the ubuntu machine, it's just sharing local directories with the correct permissions that I can't work out. So far I can access the files from my other machine, but I do not have write access even though I am logged on as a user who is a member of GroupWithWriteAccess.

View 1 Replies View Related

Networking :: Samba - Permissions Of Shared Directory And Directories Above It?

Oct 20, 2009

I am running Ubuntu 9.04, and wish to share a folder to be accessed without logging in via Windows Vista. If I set up the share through the nautilus right-click menu and enable "Guest Account", the share is inaccessible. The folder shows up, but it fails to mount. Vista says that it can see the computer, but not the shared folder.

The folder is

/home/william/shared

The only way I can get it to work is if I change the permissions of the folder /home/william to allow Others to access files.

View 1 Replies View Related

CentOS 5 Networking :: Windows Permissions On Samba Share?

Apr 30, 2009

I have set up a Samba share via my CentOS 5 server (the samba share is actually a mounted filesystem, not local machine space). I have been successful in adding permissions for my windows users within the smb.conf, but have an additional need that I cannot figure out. I would like for my Windows administrators to be able to create folders and assign permissions from their machines (and their Windows GUI). Ultimately I need the folders on the Samba share to behave correctly when Windows group permissions are applied by these administrators.

When the folders are created, the "Everyone" identity cannot be deleted and sometimes "Creator Owner" or "Creater Group" show up. I have seen several threads start down this path, but haven't seen a definite answer (I may have just missed it!).

View 1 Replies View Related

Ubuntu Networking :: Setting Up Sharing With Samba?

Feb 12, 2011

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.

I have this entry for it in my smb.conf

Code:
[80GBshare]
comment = /media/Sifl_80GB/Shared/ folder share
path = /media/Sifl_80GB/Shared

[Code].....

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?

View 4 Replies View Related

Networking :: Samba Automount With Full Read / Write Permissions

Mar 24, 2009

I have 4 machines; all multiboot. I want each machine to have full rw access to file shares on each other machine, AND, full rw access to the other partitions on the same machine home folder for UNbooted OS's. I imagine Samba will NOT handle all these configurations? What else do I have to do, so that, for example, if I have 2 machines on, and I boot up a third machine in another room, it will auto mount the other 2 machines' shares, and it export it's own shares to the other 2 machines? I want also each machine to have full rw access to shares on the UNbooted partitions of each machine.

View 1 Replies View Related

Ubuntu Networking :: How Do I Go About Setting Up Samba So Stuff Is Visible

Nov 4, 2010

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.

View 9 Replies View Related

Ubuntu Networking :: Setting Up Samba File Server?

Nov 27, 2010

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.

Here is the config file:

Code:
[global]
workgroup = WORKGROUP
netbios name = GrenadingBadger
security = share

[Code]....

View 5 Replies View Related

Ubuntu Networking :: 10.04 Can't Connect To Internet After Setting Static IP For Samba

May 17, 2010

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?

View 6 Replies View Related

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.

View 3 Replies View Related

Ubuntu Networking :: Samba Network - Setting Up The Unbutu PCs To Browse The Workgroup

Dec 30, 2010

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.

View 9 Replies View Related

Fedora Networking :: Samba And Network Manager In 9 - Setting Up A Wired Connection?

Feb 3, 2009

I have 2 workstations that I'm trying to network together so that I can backup each to the other. One is XP sp2 and the other Fedora 9. Since installing Samba on the Fedora box and trying to get it configured, I have a problem that Add/remove programs won't do installs because it says there's no connection to a network. Network Manager says there aren't any connections, but it worked before the Samba install. Mozilla and Thunderbird can access the internet OK. Both workstations are connected by cable to my router and thus to my ISP (DNS server).

Two questions:- where can I find hints on setting up a wired connection (which card's MAC address does it want? router or wrkstn?) and Am I right that Add/remove is stuffed because of Network Manager?I now have Samba working from Linux to XP, but still can't get into Linux from XP. I tried the Linux PC's MAC address and set up a wired connection in Network Manager. NM still thinks there isn't one...

View 1 Replies View Related

Networking :: Setting Up Configuration?

Aug 19, 2010

Currently I have 2 Arch Linux boxes, one upstairs, one downstairs. Well, The router is downstairs, and my office is upstairs. My windows laptop is hooked up wireless, and one of my linux machines is upstairs, so I can't exactly connect it to the router. Now I know how to setup a bridge in windows to allow access to internet from other windows machines, my 360, etc, but How do you exactly do it in Linux, something i've never tried doing before.

View 1 Replies View Related

Ubuntu Networking :: Setting Up A Static IP In A LAN And DNS Configuration?

Feb 13, 2010

how to set up a static IP from Ubuntu... Secondly, on some of the tutorials I read, there was something about changing the DNS server IP adresses. I do know what a DNS server is (Courtesy of www.howstuffworks.com ) but I don't understand why the DNS servers must be changed simply because I chose to use a static IP address.. (My PC connects to the internet via a router.. )

View 7 Replies View Related

Ubuntu Networking :: How To Get The Samba Configuration

Feb 10, 2011

My smb.conf is given below

Code:

[global]
workgroup = WORKGROUP
netbios name = PIRATEBAY
wins support = yes
server string = %h server (Samba %v)

[code]...

Though others could easily access my shares in a passwordless way, I am being aksed for password when I try to access their shares. They are running windows machines. I could easily access their shres without password from my windows setup.

View 1 Replies View Related

Ubuntu Networking :: Ubuntu Samba Seperate Subdirectory Permissions?

Jul 18, 2011

Okay so I decided to turn my NAS over from Windows Server 2003 to Ubuntu 11.04 Desktop. This was a big leap for me as I'm still quite new to Linux, but I thought it'd be worth it. I've got everything working pretty good such as Apache2, SSH and converting my disks to ext4.My problem however is Samba. I've got it to share out my hard drives okay but haven't got effective permissions just yet. All drives and the documents storage folder have write permissions by everyone at the moment but I'm the only one that really uses them in the LAN. What I need to do is be able to do what can be done on Windows Server, create a share, set who can access it (user or group) and then under Windows Explorer change folder permissions so say Elliot can access the share and folder Stuff but Sandra can access the share and not Stuff. Which is easy enough on Windows but I need the folders under that share to work the same with Samba. Here is how the drives are mounted and where the documents folder is located:

"Samba share name" at "mount/folder"
"datastore1" mounted at "/srv/ds1"
"datastore2" mounted at "/srv/ds2"

[code]....

View 7 Replies View Related

Ubuntu Networking :: Samba Configuration - How To Share USB External HDD

Mar 14, 2011

I am trying to share a USB external Hdrive from my ubuntu install to my windows systems (win 7 and 1 win xp) Everything seams to be working.. as in I can see the computer in "network" from windows explorer.... The problem is no matter what I do I can not seam to browse onto it or even type in direct share locations....

EG: //Zbox/HDMedia

or just browse through the Zbox computer icon that appears in my "Network" window in explorer. I have "sudo chmod 0777 /media/HDMovies"I can see it in the win7 Network window.. I assume it is some setting for security...I am on a home network and not very security conscious. I just want it to work.

View 9 Replies View Related

Ubuntu Networking :: How To Generate Default Samba Configuration Files

Sep 1, 2011

I had some troubles on samba, so I re-installed it.After I uninstalled samba, I noticed old /etc/samba folder/ files were left, so I deleted all of them. Then I installed samba, however, no /etc/samba files were installed.How can I generate default samba configuration files??

View 4 Replies View Related

Networking :: Document/Link For Samba Configuration?

Jun 7, 2010

share me the good links or documents to learn Samba?

View 1 Replies View Related

Networking :: Samba Server Configuration - Error

Jul 19, 2010

I am trying to configure samba server on my linux RHEL 5 box to windows 2000 NT boxes but getting the following error

Global parameter guest account found in service section!
[2010/07/16 16:01:13, 0] lib/util_sock.c826)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use

View 1 Replies View Related

Ubuntu :: Setting Up FTP With Permissions?

Dec 29, 2010

I recently got an old computer to use as a server and I have a whole list of things I want to do on it, but I'm having difficulties.When I installed the server, I installed AMP, FTP, Samba, CUPS, and some other items. I made a user account called 'nessdan' which (currently!) is in these groups:

www-data adm dialout cdrom plugdev lpadmin sambashare admin

The www-data group was added because I wanted to FTP my site files into '/var/www/' . Okay, that ended up working out for me. This is where things got sticky. I installed PHPMyAdmin and the files went to '/usr/share/phpmyadmin/' . I wanted to install a new theme so I downloaded it onto my Laptop, then logged in via FTP but couldn't transfer files into there! It turns out the folder was owned by 'root' and was in the group 'root'. The only thing I could come up with was to change that folders permissions so the owner was 'nessdan' and the group 'admin'. I was going to do that to the entire /usr/share/ folder but I didn't know whether or not I should be changing the permissions in the first place.

But the the trend continues! I have my print server setup and working but I wanted the server to hold the Windows drivers, so I went to '/var/lib/samba/' to do some work but noticed that a lot of the files' permissions were locked down to read only and the owner and group were 'root' . I ended up doing a 'chmod 775' and changing the owner and group to 'nessdan' and 'admin', respectively. Well I transfered over the files but now the service nmbd isn't working. The good news is, I expected to mess something up along the way and had already planned on reinstalling Ubuntu Server 10.10. I've only had the server for 4 days now and I knew from the beginning I'd be wiping it clean. I want to know how to set this thing up proper and the biggest problem is getting access into folders so I can FTP into them.When I do wipe my PC clean and start anew, how should I go about the changes that I did before (PHPMyAdmin, Samba Driver Folder)?

View 2 Replies View Related







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