Re: [ubuntu-uk] Samba Shares
I couldn't get the tool to work either, I haven't experimented with Meercat yet, I installed 4 on a Lucid installation - finally, I copied over my old manually-typed smb.conf and it sorta worked OK ;) Gotta say, my brush with it inspired me with trepidation but I'm sure it'll get sorted out anon. I found FreeNAS annoying - I don't know FreeBSD and so I could get an Ubuntu file server set up in a fraction of the time - and it's relatively hellish getting it running properly on motley hardware too. Paula On 06/09/10 12:53, Cornelius Mostert wrote: try running sudo chmod 777 * on the directorys and files Arghhh - while it's entirely possible that this might resolve the issue, that's possibly the WORST thing you can do to resolve a permissions based issue! Please don't ever suggest chmod-ing full permissions to everyone - it's a fix that is likely to come back and bite at a later date! I have played around on a test VM to see if I can get this working, It looks like if I use the Sysconfig-Samba tool (VERY basic) as the FIRST point of contact/setup then things do go better although I am still not getting it all 100% working... I am now leaning to FreeNAS as a solution instead of struggling with Samba, I guess FreeNAS is also making use of Samba but hey they handle all the stuff in the back ground. I will keep you up to date to let you know what solution finally worked for me and if I can find any specifics on why MY Samba setup does not work. Thanx -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
> >> try running sudo chmod 777 * on the directorys and files > > > Arghhh - while it's entirely possible that this might resolve the issue, > > that's possibly the WORST thing you can do to resolve a permissions based > > issue! > > Please don't ever suggest chmod-ing full permissions to everyone - it's a > > fix that is likely to come back and bite at a later date! I have played around on a test VM to see if I can get this working, It looks like if I use the Sysconfig-Samba tool (VERY basic) as the FIRST point of contact/setup then things do go better although I am still not getting it all 100% working... I am now leaning to FreeNAS as a solution instead of struggling with Samba, I guess FreeNAS is also making use of Samba but hey they handle all the stuff in the back ground. I will keep you up to date to let you know what solution finally worked for me and if I can find any specifics on why MY Samba setup does not work. Thanx -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
ah, so that's why my server broke when I got annoyed and did sudo chmod 777 /* On 3 September 2010 17:03, Paul Morgan-Roach wrote: > On Fri, Sep 3, 2010 at 11:37 AM, Jacob Mansfield wrote: > >> try running sudo chmod 777 * on the directorys and files >> >> Arghhh - while it's entirely possible that this might resolve the issue, > that's possibly the WORST thing you can do to resolve a permissions based > issue! > > Please don't ever suggest chmod-ing full permissions to everyone - it's a > fix that is likely to come back and bite at a later date! > > -- > ubuntu-uk@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk > https://wiki.ubuntu.com/UKTeam/ > > -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
On Fri, Sep 3, 2010 at 11:37 AM, Jacob Mansfield wrote: > try running sudo chmod 777 * on the directorys and files > > Arghhh - while it's entirely possible that this might resolve the issue, that's possibly the WORST thing you can do to resolve a permissions based issue! Please don't ever suggest chmod-ing full permissions to everyone - it's a fix that is likely to come back and bite at a later date! -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
try running sudo chmod 777 * on the directorys and files On 3 September 2010 01:48, Cornelius Mostert < corneliusmost...@googlemail.com> wrote: > Further more: > -- > Loged in as the cAdmin user on the command prompt > > $ smbclient -L //rs0002 > Enter cAdmin's password: > Domain=[rs0002] OS=[Unix] Server=[Samba 3.4.7] > > Sharename Type Comment > - --- > IPC$IPC IPC Service (rs0002 server (Samba, Ubuntu)) > MusicStore Disk Shared Music Area > Domain=[rs0002] OS=[Unix] Server=[Samba 3.4.7] > > Server Comment > ---- > RS0002 rs0002 server (Samba, Ubuntu) > > WorkgroupMaster > ---- > rs0002 RS0002 > -- > > And logging in as cAdmin user: > > $ smbclient //192.168.2.3/MusicStore -U cAdmin > Enter cAdmin's password: > Domain=[rs0002] OS=[Unix] Server=[Samba 3.4.7] > smb: \> q > > -- > > BUT logging in as test1 user: > > $ smbclient //192.168.2.3/MusicStore -U test1 > Enter test1's password: > Domain=[rs0002] OS=[Unix] Server=[Samba 3.4.7] > tree connect failed: NT_STATUS_BAD_NETWORK_NAME > > -- > > Does this mean that the test1 user is not correctly setup as a Samba user > OR dies it mean that the test1 user does not have access rights to this > folder?? > > -- > ubuntu-uk@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk > https://wiki.ubuntu.com/UKTeam/ > > -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
Further more: -- Loged in as the cAdmin user on the command prompt $ smbclient -L //rs0002 Enter cAdmin's password: Domain=[rs0002] OS=[Unix] Server=[Samba 3.4.7] Sharename Type Comment - --- IPC$IPC IPC Service (rs0002 server (Samba, Ubuntu)) MusicStore Disk Shared Music Area Domain=[rs0002] OS=[Unix] Server=[Samba 3.4.7] Server Comment ---- RS0002 rs0002 server (Samba, Ubuntu) WorkgroupMaster ---- rs0002 RS0002 -- And logging in as cAdmin user: $ smbclient //192.168.2.3/MusicStore -U cAdmin Enter cAdmin's password: Domain=[rs0002] OS=[Unix] Server=[Samba 3.4.7] smb: \> q -- BUT logging in as test1 user: $ smbclient //192.168.2.3/MusicStore -U test1 Enter test1's password: Domain=[rs0002] OS=[Unix] Server=[Samba 3.4.7] tree connect failed: NT_STATUS_BAD_NETWORK_NAME -- Does this mean that the test1 user is not correctly setup as a Samba user OR dies it mean that the test1 user does not have access rights to this folder?? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
Ok I am now on the brink of reinstalling as I have tried all I can think of... My samba now looks like this -- # Samba config file created using SWAT # from UNKNOWN (0.0.0.0) # Date: 2010/09/02 23:31:22 [global] workgroup = rsServer netbios name = rs0002 server string = %h server (Samba, Ubuntu) bind interfaces only = Yes obey pam restrictions = Yes pam password change = Yes unix password sync = Yes log level = 1 log file = /var/log/samba/log.%m max log size = 1000 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes [Music Store] inherit owner = Yes writeable = yes path = /data/NetworkShares/temp1 force directory mode = 3777 comment = Shared Music Area directory mask = 3777 valid users = test1,@cAdmin --- I have users: cAdmin test1 I have linux groups: cAdmin I have these lines in my groups file in /etc: cAdmin:x:1000:cAdmin,test1 sambashare:x:122:cAdmin -I did not create this group (I think) I have this on the shared folder: drwxrwsrwt 2 cAdmin cAdmin 4096 2010-09-02 23:51 temp1 Now when I try to access my share \\192.168.2.3 from XP it popes up a log on box If I use cAdmin as user and the correct password then I see a list of Shares (currently only the Music Store) I then can double click on the share and have full access rights. HOWEVER If I use test1 as user and the correct password then I see a list of Shares (currently only the Music Store) NOW if I double click on the share it state that the share could not be accessed and that I might not have the correct permissions... This is now doing my head in!! - The test1 user IS in the cAdmin group - The folder belongs to the cAdmin user and cAdmin group AND allow anyone else full access - Valid users are test1 user AND cAdmin group BUT only the cAdmin user can access the particular share even thought both users can see the share -- _ Cornelius Mostert Senior IT Specialist United Kingdom: 075 2233 4818 International: 0044 75 2233 4818 -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
On 02/09/10 14:45, Cornelius Mostert wrote: > Thanx for the file, I saw a few interesting things in there that I > would like to try, I do recall in the past that I also struggled to > get SAMBA up and running and the FIRST user thing does strike a bell. > I deduct from: copy = Music Store that this copy all the settings from > the Music Store and replace the "variables" with what you state as the > values to be Yes. This is all available to read in the samba manual: http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#COPY > Can you elaborate on the Recycle bit as this does look interesting, I > did not go through your article as yet so maybe you are explaining it > there also. http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/VFS.html#id2651247 Al -- The Open Learning Centre http://www.theopenlearningcentre.com -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
> When you first configure samba, you do have to add a user to the smbpasswd > store using: smbpasswd -a username > [Media Store] >copy = Music Store >comment = Pictures, Videos etc... >path = /home/media/ > > [homes] >comment = Home Directory for %U >path = %H >valid users = %S >create mode = 0644 >directory mode = 0755 >read only = no >browseable = yes > ># Add a Recycle Bin >vfs object = recycle >recycle:repository = .trash >recycle:keeptree = yes >recycle:exclude = *.tmp, *~, *.bak > > Thanx for the file, I saw a few interesting things in there that I would like to try, I do recall in the past that I also struggled to get SAMBA up and running and the FIRST user thing does strike a bell. I deduct from: copy = Music Store that this copy all the settings from the Music Store and replace the "variables" with what you state as the values to be Can you elaborate on the Recycle bit as this does look interesting, I did not go through your article as yet so maybe you are explaining it there also. Thanx -- _ Cornelius Mostert Senior IT Specialist United Kingdom: 075 2233 4818 International: 0044 75 2233 4818 -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
On 01/09/10 23:08, Cornelius Mostert wrote: > Hi all > I have some trouble setting up my Samba Server. Here is the Samba file: > # Samba config file created using SWAT I just hand code smb.conf files and and when needed. the one below has been working just fine for years and is currently working on my local LAN at home on a 10.04 server with Ubuntu clients and one lone XP VM. When you first configure samba, you do have to add a user to the smbpasswd store using: smbpasswd -a username But after the first one is done I believe it is automatic (this might not be true I don't ever recall having to add additional users manually). FWIW, the [* Store] shares are quite interesting in that they act like a one-way dropbox. My family can *add* pictures, music etc, but they cannot delete. Just in case, if you know what I mean. I wrote about how to get this to work here: http://www.theopensourcerer.com/2008/04/17/a-shared-drop-box-using-samba/ -- # Samba Configuration File # Created 27/09/07 # Global Parameters [global] bind interfaces only = Yes netbios name = VIMES workgroup = HOME-NET unix charset = UTF-8 server string = %h server (Samba, Ubuntu) interfaces = eth1, 127.0.0.1 hosts deny = 10.0.0.1 log level = 1 log file = /var/log/samba/log.%m max log size = 1000 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no domain master = yes preferred master = yes encrypt passwords = true obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes passdb backend = tdbsam wins support = yes [Music Store] comment = Shared Music Area path = /home/music/ read only = no valid users = +shared browseable = yes inherit owner = yes directory mode = 3770 force directory mode = 3770 [Media Store] copy = Music Store comment = Pictures, Videos etc... path = /home/media/ [Software Store] copy = Music Store comment = Software Dropbox path = /home/sware/ [homes] comment = Home Directory for %U path = %H valid users = %S create mode = 0644 directory mode = 0755 read only = no browseable = yes # Add a Recycle Bin vfs object = recycle recycle:repository = .trash recycle:keeptree = yes recycle:exclude = *.tmp, *~, *.bak --- PS - For someone with a Job title of "Senior IT Specialist" I am somewhat surprised you are using tools like webmin and swat which do not have the best reputations for security... Al -- The Open Learning Centre http://www.theopenlearningcentre.com -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
> Is cAdmin part of the Samba group? > > Daniel > > -- > > > I did not add or change any of the settings in the XP box but guess and > > hope this is not required > > > > > > Please could you help me to come to know what the fault/s is/are > > Have you run smbpasswd -a for each account to create the > accounts in Samba (can't remember if you create accounts after > installing Samba if you need to do this). > > Rob Hi Daniel I do think that the cAdmin User is in a Samba group = cAdmin but not sure if it is in THE Samba group, Do I need to place EACH win/nix user in THE Samba group if I want them to have access to the shares surely not?? Rob This does ring a bell but I have made use of Webmin to create some *nix users AFTER samba was installed and event they did not have much joy. I will however check this agian BTW: It is an Ubuntu 32 bit v10.4 desktop install with Webmin v Latest -1 and Samba 3 I believe if anyone was wondering. thanx _ Cornelius Mostert Senior IT Specialist United Kingdom: 075 2233 4818 International: 0044 75 2233 4818 -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
On 01/09/10 23:08, Cornelius Mostert wrote: > Hi all > I have some trouble setting up my Samba Server. Here is the Samba file: > I did not add or change any of the settings in the XP box but guess and > hope this is not required > > > Please could you help me to come to know what the fault/s is/are > > thanx > Have you run smbpasswd -a for each account to create the accounts in Samba (can't remember if you create accounts after installing Samba if you need to do this). Rob -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Samba Shares
Is cAdmin part of the Samba group? Daniel -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/