[Samba] Samba Share Issue Folder and files cant created

2013-07-05 Thread Babin Lonston
Hi All , 
This Is Babin Lonston 
Facing a Small trouble for last 2 days , Im using Centos 6.3 and only the 
purpose of using centos is to use samba Service , Centos 6.3 machine assigned 
with a Static IP address of (192.168.1.15) in Local area , And have the 
hostname with (sambafileserver), Created a folder public/
Created a smbpasswd -a root Created a smbpasswd -a sysadmin 
[root@sambafileserver /]# ll -ld public/drwxrwxr-x+ 2 root root 4096 Jul  5 
16:08 public/
And this Have shared for client machines and even i can access the share in all 
client machine and i have mounted the Share in client machine , its mounted 
inside the home directory of all client machines 
mount  -t cifs //192.168.1.15/public /home/sysadmin/public/
And fstab entry too given as 
//192.168.1.15/public /home/sysadmin/public cifs 
username=sysadmin,password=admin123$,rw,_netdev 0 0
After a Restart its Automatically mounting into the specifed Directory were i 
have mounted ..But i can't Create a Folder inside /home/sysadmin/public which 
was mounted from //192.168.1.15/public

Selinux status
[root@sambafileserver /]# sestatusSELinux status: 
enabledSELinuxfs mount:/selinuxCurrent mode:   
enforcingMode from config file:  enforcingPolicy version:   
  24Policy from config file:targeted
After creatind /public folder i have given used to change chcon and setsebool 
those command are here please have a look

 #chcon -Rt samba_share_t public/

 [root@sambafileserver /]# ll -Zd public/ drwxrwxr-x+ root root 
unconfined_u:object_r:samba_share_t:s0 public/
  [root@sambafileserver /]# setfacl -m u:nobody:rwx public/


After those all not fixed the issue so i have changed these , even so not fixed 
 #setsebool -P samba_export_all_rw on #setsebool -P samba_enable_home_dirs on

Let me Give my smb.conf entry



[global]# --- Network Related Options 
-## workgroup = NT-Domain-Name or Workgroup-Name, eg: 
MIDEARTH## server string is the equivalent of the NT Description field## 
netbios name can be used to specify a server name not tied to the hostname## 
Interfaces lets you configure Samba to use multiple interfaces# If you have 
multiple network interfaces then you can list the ones# you want to listen on 
(never omit localhost)## Hosts Allow/Hosts Deny lets you restrict who can 
connect, and you can# specifiy it as a per share option as well#  workgroup 
= MYGROUP server string = Samba Server Version %v ;   netbios name = 
MYSERVER interfaces = lo eth0 127.0.0.1/0 192.168.1.1/24 hosts 
allow = 127. 192.168.1. 192.168.0. 192.168.2. 

# --- Standalone Server Options ## 
Scurity can be set to user, share(deprecated) or server(deprecated)## Backend 
to store user information in. New installations should # use either tdbsam or 
ldapsam. smbpasswd is available for backwards # compatibility. tdbsam requires 
no further configuration.
security = user passdb backend = tdbsam


# Share Definitions ==  
[homes] comment = Home Directories  browseable = yeswritable = yes  
valid users = sysadmin; valid users = MYDOMAIN\%S   [printers]  comment 
= All Printers  path = /var/spool/samba browseable = no guest ok = no   
writable = no   printable = yes # Un-comment the following and create the 
netlogon directory for Domain Logons; [netlogon]; comment = Network Logon 
Service;path = /var/lib/samba/netlogon; guest ok = yes; writable = no;  
share modes = no# Un-comment the following to provide a 
specific roving profile share# the default is to use the user's home directory; 
[Profiles]; path = /var/lib/samba/profiles; browseable = no;guest 
ok = yes  # A publicly accessible directory, but read only, except for 
people in# the staff group;  [public];   comment = Public Stuff; path 
= /home/samba; public = yes;   writable = yes; printable = no; write list = 
+staff

[public]comment = Public Stuffspath = /public
public = yeswritable = yes browseable = yesprintable = no   
 write list = +staff

Only The issue i cant Create a folder and create any files inside the Samba 
Shared folder ...
Please give me a Solution to get rectified ...
   

  
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba share on a network shared with other people is randomly accessible

2013-04-29 Thread Cory Simmons
I installed Ubuntu Server 12.04, Samba, configured smb.conf, added a Samba
user, and restarted Samba, to create a shared folder between my VM guest
(Ubuntu), and my host (Windows 7). I also set my Network to Bridged instead
of NAT.

I was able to access \\UBUNTU for a while, but now I'm not able to, and it
seems like randomly I'll be able to access \\UBUNTU for brief amounts of
time.

I'm new to Ubuntu, Samba, VMs, and networking in general, so I tried making
the VM's IP static in hopes it would fix this to no avail.

I'm at a complete loss and have worked on this for 3-4 days straight now.

Here's what I appended to smb.conf:

[my_share]
  path = /home/cory/apps
  read only = no
  admin users = cory

I get the feeling this is a problem with the network changing when other
people connect to it, and/or some Samba settings.

Anyway, I'd love any help. I'm completely stumped as to why it'd work
sometimes, and why it wouldn't work most of the time - without changing
anything. Thanks!
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba share an NFS import?

2012-09-01 Thread Volker Lendecke
On Fri, Aug 31, 2012 at 02:46:17PM -0700, Jeremy Allison wrote:
 On Fri, Aug 31, 2012 at 08:45:28PM +, Scott-Fleming, Ian wrote:
  Is it a problem to share a folder via Samba that is actually an NFS import 
  from another machine?
  
  Looking at Samba documentation, it seems it shouldn't be.  But I find only 
  this one reference to re-exporting an NFS import via Samba  (this is under 
  Samba 3.6 Features added/changed):
  
  http://wiki.samba.org/index.php/Samba_3.6_Features_added/changed#NFS_quota_backend_on_Linux
  
  which says A new nfs quota backend for Linux has been added that is based 
  on the existing Solaris/FreeBSD implementation. This allows samba to 
  communicate correct diskfree information for nfs imports that are 
  re-exported as samba shares.
  
  But googling the problem, I find numerous discussions, where most contain 
  something along the lines of this:
  
  http://serverfault.com/questions/68330/samba-sharing-an-nfs-mount-point
  
  
  which says, The Samba manual mentions that re-exporting a NFS mountpoint 
  over Samba does not work correctly. NFS is not 100% POSIX compatible, so 
  some things work differently than what Samba expects.  I.e. you should run 
  Samba on the same server where you run the NFS service, exporting the local 
  disks directly.
  
  I also came across various folks claiming one needs to play with the timing 
  parameters in smb.conf.
  
  We're currently running Samba 3.5.10, under RHEL 6.2 (3.5.10 is the version 
  currently supplied with RHEL 6.2).  Machine Q nfs-mounts machine M's data 
  disks, and re-exports them via Samba for users to access.  We are 
  experiencing problems with the NFS share occasionally becoming very slow 
  (both for machine Q and the machines that mount them via Samba), and I'm 
  wondering if the re-export is the problem.
  
  Question 1:  When was samba re-export of NFS import considered stable?  
  I.e., Do I need to update to 3.6 (move ahead of RHEL distribution) for this 
  to be OK?
  Question 2:  Can someone point me to more official Samba documentation on 
  exporting?
 
 Bottom line - it'll mostly work.
 
 Caveat. Don't come complaining here when the locking doesn't work :-).

And -- when it suddenly becomes slow, the analysis why it is
so is more difficult than with a local file system.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kont...@sernet.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] samba share an NFS import?

2012-08-31 Thread Scott-Fleming, Ian
Is it a problem to share a folder via Samba that is actually an NFS import from 
another machine?

Looking at Samba documentation, it seems it shouldn't be.  But I find only this 
one reference to re-exporting an NFS import via Samba  (this is under Samba 
3.6 Features added/changed):

http://wiki.samba.org/index.php/Samba_3.6_Features_added/changed#NFS_quota_backend_on_Linux

which says A new nfs quota backend for Linux has been added that is based on 
the existing Solaris/FreeBSD implementation. This allows samba to communicate 
correct diskfree information for nfs imports that are re-exported as samba 
shares.

But googling the problem, I find numerous discussions, where most contain 
something along the lines of this:

http://serverfault.com/questions/68330/samba-sharing-an-nfs-mount-point


which says, The Samba manual mentions that re-exporting a NFS mountpoint over 
Samba does not work correctly. NFS is not 100% POSIX compatible, so some things 
work differently than what Samba expects.  I.e. you should run Samba on the 
same server where you run the NFS service, exporting the local disks directly.

I also came across various folks claiming one needs to play with the timing 
parameters in smb.conf.

We're currently running Samba 3.5.10, under RHEL 6.2 (3.5.10 is the version 
currently supplied with RHEL 6.2).  Machine Q nfs-mounts machine M's data 
disks, and re-exports them via Samba for users to access.  We are experiencing 
problems with the NFS share occasionally becoming very slow (both for machine Q 
and the machines that mount them via Samba), and I'm wondering if the re-export 
is the problem.

Question 1:  When was samba re-export of NFS import considered stable?  I.e., 
Do I need to update to 3.6 (move ahead of RHEL distribution) for this to be OK?
Question 2:  Can someone point me to more official Samba documentation on 
exporting?


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba share an NFS import?

2012-08-31 Thread Jeremy Allison
On Fri, Aug 31, 2012 at 08:45:28PM +, Scott-Fleming, Ian wrote:
 Is it a problem to share a folder via Samba that is actually an NFS import 
 from another machine?
 
 Looking at Samba documentation, it seems it shouldn't be.  But I find only 
 this one reference to re-exporting an NFS import via Samba  (this is under 
 Samba 3.6 Features added/changed):
 
 http://wiki.samba.org/index.php/Samba_3.6_Features_added/changed#NFS_quota_backend_on_Linux
 
 which says A new nfs quota backend for Linux has been added that is based on 
 the existing Solaris/FreeBSD implementation. This allows samba to communicate 
 correct diskfree information for nfs imports that are re-exported as samba 
 shares.
 
 But googling the problem, I find numerous discussions, where most contain 
 something along the lines of this:
 
 http://serverfault.com/questions/68330/samba-sharing-an-nfs-mount-point
 
 
 which says, The Samba manual mentions that re-exporting a NFS mountpoint 
 over Samba does not work correctly. NFS is not 100% POSIX compatible, so some 
 things work differently than what Samba expects.  I.e. you should run Samba 
 on the same server where you run the NFS service, exporting the local disks 
 directly.
 
 I also came across various folks claiming one needs to play with the timing 
 parameters in smb.conf.
 
 We're currently running Samba 3.5.10, under RHEL 6.2 (3.5.10 is the version 
 currently supplied with RHEL 6.2).  Machine Q nfs-mounts machine M's data 
 disks, and re-exports them via Samba for users to access.  We are 
 experiencing problems with the NFS share occasionally becoming very slow 
 (both for machine Q and the machines that mount them via Samba), and I'm 
 wondering if the re-export is the problem.
 
 Question 1:  When was samba re-export of NFS import considered stable?  I.e., 
 Do I need to update to 3.6 (move ahead of RHEL distribution) for this to be 
 OK?
 Question 2:  Can someone point me to more official Samba documentation on 
 exporting?

Bottom line - it'll mostly work.

Caveat. Don't come complaining here when the locking doesn't work :-).

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share - MS Excel when saving can't access the file, there are several possible reasons

2012-07-03 Thread Daniel Müller
Hi,

Try this

directory mask=2770
force directory mode=2770
create mask = 2770
force create mode=2770
force security mode=2770
force directory security mode=2770
force group= yourgroup

Give the directory the sticky bit for the group

Good Luck
Daniel

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---
-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Günter Kukkukk
Gesendet: Dienstag, 3. Juli 2012 06:45
An: samba@lists.samba.org
Betreff: Re: [Samba] Samba Share - MS Excel when saving “can't access the
file, there are several possible reasons”

Am Dienstag, 3. Juli 2012, 06:16:45 schrieb Gibransyah Fakhri:
 Hello all samba fans.., Long live open source :) Thanks for the 
 @adminbot for approving me to joining this milis.
 
 Please allow me to ask the question,
 I have a weird problem in my samba share. I have one share definition 
 for 3 client (A,B,C) This share contain some excel file which having a 
 lot of formula and linked each other.
 Client A access the file with libre office (ubuntu), client B access 
 with WinXP  MS Office 2003, The write and read process working 
 successfuly on Both of them.
 
 The problem occur when client C accessing the same file with MS Excel
 2003 (windows xp). This messagebox appear when he saving the file :
 
 Microsoft office excel cannot access the \\192.168.1.23\myshare\ 
 There are several possible reasons:
 
  - The File ort path does not exist The file is being used by 
 another program.
  - The workbook you are trying to save has the same name as a
  - Currently open workbooks.
 
 I was trying http://support.microsoft.com/kb/291204 but it didnt work.
 Below is my share definition :
 
 [brainshare]
 comment = brainshare
 path = /opt/brainshare/
 valid users = @brainshare
 force group = brainshare
 read only = No
 create mask = 0775
 veto files = /*.scr/*.eml/thumbs.com/
 
 Help me please... Thanks in advance !
 Server: Ubuntu 10.10, Samba version 3.5.4
 
 --
 Thinking out of the box

what does smbstatus (run as root) on the samba server show when all 3
clients have the same file open?

Does this only happen when _all_ 3 clients access that file at the same
time?

So, does it work when only B and C (windows xp) clients access that file?

Cheers, Günter
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share - MS Excel when saving can't access the file, there are several possible reasons

2012-07-03 Thread Gibransyah Fakhri
On 3 July 2012 13:11, Daniel Müller muel...@tropenklinik.de wrote:

 directory mask=2770
 force directory mode=2770
 create mask = 2770
 force create mode=2770
 force security mode=2770
 force directory security mode=2770
 force group= yourgroup

 Give the directory the sticky bit for the group

Hi Daniel and mueller, firstly thank you for the fast response.

Daniel, You saved my day, it works !.
what happen here, why i must set the sticky bit for each directory  ?

This is the funny history about this.
Client A, B, and C share tangled threads excel works about 3.4 GB.
They working sequencely,
if client A  has finished, then client A will copy all that 3.4 GB to
client B and client C notebook with a flash disk xD.
as well client B and C, they doing that carousel ritual each day. :))

Finally we create samba file sharing to change their ritual. :)

Now, i'm worried about the virus issue which someday can infecting the
file, windows client here.
Is samba is the correct way to solve a problem like this ?

Mmm.. actually, we also have a 2nd scenario to convert their ritual to
revision control using git.
cheers,

-- 
Thinking out of the box
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba share access problems

2012-07-02 Thread Derek Lewis
Hello,

I have Samba 3.6.6 compiled and running under Ubuntu 10.04 server, I
upgraded from 3.5.x and used the same share and configuration file.

I have access problems from my Windows machines network path not found
that I am trying to diagnose via smbclient from the server console: with
smbclient...

When I run, smblcient -L wen-chang\user1,. For any of my users, I see the
error message Error returning browse list: NT STATUS OK.

The shares are browseable=yes, so I think this is a permissions problem or
an issue with the way I created my Samba users.

Suggestions on additional tests to locate the problem?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba Share - MS Excel when saving “can't access the file, there are several possible reasons”

2012-07-02 Thread Gibransyah Fakhri
Hello all samba fans.., Long live open source :)
Thanks for the @adminbot for approving me to joining this milis.

Please allow me to ask the question,
I have a weird problem in my samba share. I have one share definition
for 3 client (A,B,C) This share contain some excel file which having a
lot of formula and linked each other.
Client A access the file with libre office (ubuntu), client B access
with WinXP  MS Office 2003, The write and read process working
successfuly on Both of them.

The problem occur when client C accessing the same file with MS Excel
2003 (windows xp). This messagebox appear when he saving the file :

Microsoft office excel cannot access the \\192.168.1.23\myshare\
There are several possible reasons:

 - The File ort path does not exist The file is being used by
another program.
 - The workbook you are trying to save has the same name as a
 - Currently open workbooks.

I was trying http://support.microsoft.com/kb/291204 but it didnt work.
Below is my share definition :

[brainshare]
comment = brainshare
path = /opt/brainshare/
valid users = @brainshare
force group = brainshare
read only = No
create mask = 0775
veto files = /*.scr/*.eml/thumbs.com/

Help me please... Thanks in advance !
Server: Ubuntu 10.10, Samba version 3.5.4

--
Thinking out of the box
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share - MS Excel when saving “can't access the file, there are several possible reasons”

2012-07-02 Thread Günter Kukkukk
Am Dienstag, 3. Juli 2012, 06:16:45 schrieb Gibransyah Fakhri:
 Hello all samba fans.., Long live open source :)
 Thanks for the @adminbot for approving me to joining this milis.
 
 Please allow me to ask the question,
 I have a weird problem in my samba share. I have one share definition
 for 3 client (A,B,C) This share contain some excel file which having a
 lot of formula and linked each other.
 Client A access the file with libre office (ubuntu), client B access
 with WinXP  MS Office 2003, The write and read process working
 successfuly on Both of them.
 
 The problem occur when client C accessing the same file with MS Excel
 2003 (windows xp). This messagebox appear when he saving the file :
 
 Microsoft office excel cannot access the \\192.168.1.23\myshare\
 There are several possible reasons:
 
  - The File ort path does not exist The file is being used by
 another program.
  - The workbook you are trying to save has the same name as a
  - Currently open workbooks.
 
 I was trying http://support.microsoft.com/kb/291204 but it didnt work.
 Below is my share definition :
 
 [brainshare]
 comment = brainshare
 path = /opt/brainshare/
 valid users = @brainshare
 force group = brainshare
 read only = No
 create mask = 0775
 veto files = /*.scr/*.eml/thumbs.com/
 
 Help me please... Thanks in advance !
 Server: Ubuntu 10.10, Samba version 3.5.4
 
 --
 Thinking out of the box

what does smbstatus (run as root) on the samba server show when
all 3 clients have the same file open?

Does this only happen when _all_ 3 clients access that file at the same time?

So, does it work when only B and C (windows xp) clients access that file?

Cheers, Günter
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba share permission

2012-01-09 Thread Charles Tryon
Malvin,

  You say you are talking about an NFS share.  Are your users on Windows or
Linux?  Of course, if you really are using NFS, then the Samba config isn't
going to control that.


On Fri, Jan 6, 2012 at 4:03 PM,  tung t...@yahoo.ca wrote:

 hi,

 i am very new to samba and have run into an issue with setting up
 directory/file permissions.

 i have a nfs share on redhat 6 linux server that a group of users will
 share. basically each user will run their own respective jobs and save the
 logs in this share.
 my issue is that  all of the users are able to delete each others files,
 which i do not want

 can somebody please help me setup right smb.conf policy so that only the
 file creator can delete the file.

 curently i am playing with these settings ( which do not work)

   path = /nfsshare/raw
 browseable = no
 writable = yes
 printable = no
 create mask = 700
 force group = raw
 force create mode = 700
 security mask = 000
 force security mode = 700
 force directory mode = 700
 directory mask = 700
 directory security mask = 000
 force directory security mode = 700



 really appreciate, i f somebody can help
 thanks
 malvin
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba




-- 
Charles Tryon
_
  It's the job that's never started that takes longest to finish.
 -- Samwise Gamgee
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] samba share permission

2012-01-07 Thread mmmm tung
hi, 
 
i am very new to samba and have run into an issue with setting up 
directory/file permissions. 
 
i have a nfs share on redhat 6 linux server that a group of users will share. 
basically each user will run their own respective jobs and save the logs in 
this share. 
my issue is that  all of the users are able to delete each others files, which 
i do not want
 
can somebody please help me setup right smb.conf policy so that only the file 
creator can delete the file. 
 
curently i am playing with these settings ( which do not work)
 
  path = /nfsshare/raw
    browseable = no
    writable = yes
    printable = no
    create mask = 700
    force group = raw
    force create mode = 700
    security mask = 000
    force security mode = 700
    force directory mode = 700
    directory mask = 700
    directory security mask = 000
    force directory security mode = 700

 
 
really appreciate, i f somebody can help
thanks
malvin
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba share permission

2012-01-07 Thread TAKAHASHI Motonobu
From:  tung t...@yahoo.ca
Date: Fri, 6 Jan 2012 13:03:24 -0800 (PST)

 i have a nfs share on redhat 6 linux server that a group of users
 will share. basically each user will run their own respective jobs
 and save the logs in this share. 

 my issue is that  all of the users are able to delete each others
 files, which i do not want 
 can somebody please help me setup right smb.conf policy so that only
 the file creator can delete the file. 

You need to know that parameters of Samba including those described
in your smb.conf can manage permissions of files/directories created
(manupulated) via SMB clients.

 create mask = 700
 force group = raw
 force create mode = 700
 security mask = 000
 force security mode = 700
 force directory mode = 700
 directory mask = 700
 directory security mask = 000
 force directory security mode = 700

Samba can restrict access per share/per user using writable/write
list/..., but not per files/directories.

If your jobs are running on RHEL server, you have to set correctly
permissions in your jobs. 

---
TAKAHASHI Motonobu mo...@monyo.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba share gets dropped from windows

2011-12-01 Thread Yan Seiner

I have what should be a no-brainer setup:

Windows network using AD with a single Linux box.  I need to provide
access to a single directory on the linux box to anyone from the network. 
Security is not a concern.

So... On the linux box, I created a user x.  I added this user to the
local samba database using smbpasswd -a.

I added the linux box to the Windows workgroup and told it where to find
the wins server.

So far so good.  I tested this setup; I can log in to the linux box and
access the one share.

The problem comes in when I tell windows to reconnect at logon.  It
fails.  From then on, I cannot connect to the share from windows.  I have
to disconnect, then map the network drive with new credentials.

I can't figure out why it's doing this.  What can I do to see where it's
failing?



-- 
Pain is temporary. It may last a minute, or an hour, or a day, or a year,
but eventually it will subside and something else will take its place. If
I quit, however, it lasts forever.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba share gets dropped from windows

2011-12-01 Thread Yan Seiner
Never mind.  Problem was between the seat and the keyboard.


On Thu, December 1, 2011 10:29 am, Yan Seiner wrote:

 I have what should be a no-brainer setup:

 Windows network using AD with a single Linux box.  I need to provide
 access to a single directory on the linux box to anyone from the network.
 Security is not a concern.

 So... On the linux box, I created a user x.  I added this user to the
 local samba database using smbpasswd -a.

 I added the linux box to the Windows workgroup and told it where to find
 the wins server.

 So far so good.  I tested this setup; I can log in to the linux box and
 access the one share.

 The problem comes in when I tell windows to reconnect at logon.  It
 fails.  From then on, I cannot connect to the share from windows.  I have
 to disconnect, then map the network drive with new credentials.

 I can't figure out why it's doing this.  What can I do to see where it's
 failing?



 --
 Pain is temporary. It may last a minute, or an hour, or a day, or a year,
 but eventually it will subside and something else will take its place. If
 I quit, however, it lasts forever.

 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba

 !DSPAM:4ed7d0ab137806551461313!




-- 
Pain is temporary. It may last a minute, or an hour, or a day, or a year,
but eventually it will subside and something else will take its place. If
I quit, however, it lasts forever.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share Access denied on Solaris

2011-08-22 Thread Moila December
Good day

How do one access a samba share which does not require a login name and
password. You only have to type the name of the server and the share
name. Which modifications can I make on the smb.conf file.

Your help will be appreciated.

Regards
Dee

-Original Message-
From: Moila December 
Sent: 27 July 2011 02:25 PM
To: samba@lists.samba.org
Cc: 'Colb, Andrew'
Subject: RE: [Samba] Samba Share Access denied on Solaris

Hi

The error was solved by adding the following two lines in the smb.conf
file recommended by my colleague.

wide links = yes
unix extensions = no

Regards,
Dee

-Original Message-
From: Colb, Andrew [mailto:a...@ici.org] 
Sent: 22 July 2011 03:10 PM
To: Moila December; samba@lists.samba.org
Subject: RE: [Samba] Samba Share Access denied on Solaris

If the credentials are managed by AD and the Samba share remained joined
to the domain throughout the Solaris reinstall/upgrade process, a good
start is to kill smbd, take the Samba server out of the AD domain (new
to Samba 3.5.5 is net leave command; or delete the Samba server entry
directly within AD), refresh AD, then rejoin the Samba server to the
domain and restart smbd.

This will provide a clean relationship between new Samba and the domain
as a starting point. 

Andy Colb
Investment Company Institute

-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Moila December
Sent: Tuesday, July 19, 2011 6:18 AM
To: samba@lists.samba.org
Subject: [Samba] Samba Share Access denied on Solaris

Hi

 

I have reinstalled the Solaris 10  server with update 9 and now runs
samba 3.5.5. I can log into the share but cannot open it. It says
permissions denied . I modified the permissions on OS but still face the
same error. Any kind of help will be appreciated.

 

Kind Regards

Dee

 

 



DISCLAIMER:
This message and any attachments are confidential and intended solely
for the addressee. If you have received this message in error, please
notify the system manager/sender.  Any unauthorized use, alteration or
dissemination is prohibited.  The Department of Water Affairs and
Forestry further accepts no liability whatsoever for any loss, whether
it be direct, indirect or consequential, arising from this e-mail, nor
for any consequence of its use or storage.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


DISCLAIMER:
This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify the system 
manager/sender.  Any unauthorized use, alteration or dissemination is 
prohibited.  The Department of Water Affairs and Forestry further accepts no 
liability whatsoever for any loss, whether it be direct, indirect or 
consequential, arising from this e-mail, nor for any consequence of its use or 
storage.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share Access denied on Solaris

2011-07-29 Thread Colb, Andrew
If the credentials are managed by AD and the Samba share remained joined
to the domain throughout the Solaris reinstall/upgrade process, a good
start is to kill smbd, take the Samba server out of the AD domain (new
to Samba 3.5.5 is net leave command; or delete the Samba server entry
directly within AD), refresh AD, then rejoin the Samba server to the
domain and restart smbd.

This will provide a clean relationship between new Samba and the domain
as a starting point. 

Andy Colb
Investment Company Institute

-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Moila December
Sent: Tuesday, July 19, 2011 6:18 AM
To: samba@lists.samba.org
Subject: [Samba] Samba Share Access denied on Solaris

Hi

 

I have reinstalled the Solaris 10  server with update 9 and now runs
samba 3.5.5. I can log into the share but cannot open it. It says
permissions denied . I modified the permissions on OS but still face the
same error. Any kind of help will be appreciated.

 

Kind Regards

Dee

 

 



DISCLAIMER:
This message and any attachments are confidential and intended solely
for the addressee. If you have received this message in error, please
notify the system manager/sender.  Any unauthorized use, alteration or
dissemination is prohibited.  The Department of Water Affairs and
Forestry further accepts no liability whatsoever for any loss, whether
it be direct, indirect or consequential, arising from this e-mail, nor
for any consequence of its use or storage.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share Access denied on Solaris

2011-07-29 Thread Moila December
I did try but was not lucky. I am still investigating as well.

-Original Message-
From: Colb, Andrew [mailto:a...@ici.org] 
Sent: 22 July 2011 03:10 PM
To: Moila December; samba@lists.samba.org
Subject: RE: [Samba] Samba Share Access denied on Solaris

If the credentials are managed by AD and the Samba share remained joined
to the domain throughout the Solaris reinstall/upgrade process, a good
start is to kill smbd, take the Samba server out of the AD domain (new
to Samba 3.5.5 is net leave command; or delete the Samba server entry
directly within AD), refresh AD, then rejoin the Samba server to the
domain and restart smbd.

This will provide a clean relationship between new Samba and the domain
as a starting point. 

Andy Colb
Investment Company Institute

-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Moila December
Sent: Tuesday, July 19, 2011 6:18 AM
To: samba@lists.samba.org
Subject: [Samba] Samba Share Access denied on Solaris

Hi

 

I have reinstalled the Solaris 10  server with update 9 and now runs
samba 3.5.5. I can log into the share but cannot open it. It says
permissions denied . I modified the permissions on OS but still face the
same error. Any kind of help will be appreciated.

 

Kind Regards

Dee

 

 



DISCLAIMER:
This message and any attachments are confidential and intended solely
for the addressee. If you have received this message in error, please
notify the system manager/sender.  Any unauthorized use, alteration or
dissemination is prohibited.  The Department of Water Affairs and
Forestry further accepts no liability whatsoever for any loss, whether
it be direct, indirect or consequential, arising from this e-mail, nor
for any consequence of its use or storage.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


DISCLAIMER:
This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify the system 
manager/sender.  Any unauthorized use, alteration or dissemination is 
prohibited.  The Department of Water Affairs and Forestry further accepts no 
liability whatsoever for any loss, whether it be direct, indirect or 
consequential, arising from this e-mail, nor for any consequence of its use or 
storage.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share Access denied on Solaris

2011-07-29 Thread Moila December
Hi

The error was solved by adding the following two lines in the smb.conf
file recommended by my colleague.

wide links = yes
unix extensions = no

Regards,
Dee

-Original Message-
From: Colb, Andrew [mailto:a...@ici.org] 
Sent: 22 July 2011 03:10 PM
To: Moila December; samba@lists.samba.org
Subject: RE: [Samba] Samba Share Access denied on Solaris

If the credentials are managed by AD and the Samba share remained joined
to the domain throughout the Solaris reinstall/upgrade process, a good
start is to kill smbd, take the Samba server out of the AD domain (new
to Samba 3.5.5 is net leave command; or delete the Samba server entry
directly within AD), refresh AD, then rejoin the Samba server to the
domain and restart smbd.

This will provide a clean relationship between new Samba and the domain
as a starting point. 

Andy Colb
Investment Company Institute

-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Moila December
Sent: Tuesday, July 19, 2011 6:18 AM
To: samba@lists.samba.org
Subject: [Samba] Samba Share Access denied on Solaris

Hi

 

I have reinstalled the Solaris 10  server with update 9 and now runs
samba 3.5.5. I can log into the share but cannot open it. It says
permissions denied . I modified the permissions on OS but still face the
same error. Any kind of help will be appreciated.

 

Kind Regards

Dee

 

 



DISCLAIMER:
This message and any attachments are confidential and intended solely
for the addressee. If you have received this message in error, please
notify the system manager/sender.  Any unauthorized use, alteration or
dissemination is prohibited.  The Department of Water Affairs and
Forestry further accepts no liability whatsoever for any loss, whether
it be direct, indirect or consequential, arising from this e-mail, nor
for any consequence of its use or storage.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


DISCLAIMER:
This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify the system 
manager/sender.  Any unauthorized use, alteration or dissemination is 
prohibited.  The Department of Water Affairs and Forestry further accepts no 
liability whatsoever for any loss, whether it be direct, indirect or 
consequential, arising from this e-mail, nor for any consequence of its use or 
storage.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share Access denied on Solaris

2011-07-23 Thread youngjohn04
Check smbd log will give you useful information.
Change the directory's mode to 777 to verify if the directory permission
issue.

Regards
yj

-Original Message-
From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org]
On Behalf Of Moila December
Sent: Tuesday, July 19, 2011 6:18 PM
To: samba@lists.samba.org
Subject: [Samba] Samba Share Access denied on Solaris

Hi

 

I have reinstalled the Solaris 10  server with update 9 and now runs
samba 3.5.5. I can log into the share but cannot open it. It says
permissions denied . I modified the permissions on OS but still face the
same error. Any kind of help will be appreciated.

 

Kind Regards

Dee

 

 



DISCLAIMER:
This message and any attachments are confidential and intended solely for
the addressee. If you have received this message in error, please notify the
system manager/sender.  Any unauthorized use, alteration or dissemination is
prohibited.  The Department of Water Affairs and Forestry further accepts no
liability whatsoever for any loss, whether it be direct, indirect or
consequential, arising from this e-mail, nor for any consequence of its use
or storage.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba Share Access denied on Solaris

2011-07-21 Thread Moila December
Hi

 

I have reinstalled the Solaris 10  server with update 9 and now runs
samba 3.5.5. I can log into the share but cannot open it. It says
permissions denied . I modified the permissions on OS but still face the
same error. Any kind of help will be appreciated.

 

Kind Regards

Dee

 

 



DISCLAIMER:
This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify the system 
manager/sender.  Any unauthorized use, alteration or dissemination is 
prohibited.  The Department of Water Affairs and Forestry further accepts no 
liability whatsoever for any loss, whether it be direct, indirect or 
consequential, arising from this e-mail, nor for any consequence of its use or 
storage.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] samba share from a dlink DNS-323

2011-02-16 Thread hassesthlm

Hi!

i have a nas and have one share for the rest of my computers

i can connect to the share from all computers so far so god :-)

but now i what the share to popup automatisk when u start win7 computers

how can i do that

i know i can mapp the share and have the box reconnet markt but thats are
not what i want

this is my smb config so far for the shared map

[media]

   path = /media
   read only = no
   browseable = yes
   public = yes


hope every one understand my english, is not the best

-- 
View this message in context: 
http://samba.2283325.n4.nabble.com/samba-share-from-a-dlink-DNS-323-tp3309160p3309160.html
Sent from the Samba - General mailing list archive at Nabble.com.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba Share Access Delay !

2011-01-12 Thread Supriya Kher
  Hello Samba Users,



 I am using Samba for our project needs to share folders between a Windows
 Server 2003 machine and a

 RedHat Linux machine. I am facing issues with Samba shares (Samba Version
 3.5.5 for RHEL 4 x86_64).  The scenario is as below –


 The windows machine has a couple of shared folders, one of them being * **
 C:\output* The windows shares are mounted onto corresponding mount points
 in linux

and the same are exposed to the external world via samba running on the
 Linux machine.



 Now, the Windows machine kicks off a few jobs and as a part of those jobs
 it writes to the *output *shared folder. This write request is directed
 via Samba as the

windows machine writes to \\Linux IPAddress\output.  It has been
observed consistently that accessing the shared folder from windows using
UNC as \\LinuxIpAddress\output
 takes a very long time. Each access takes around 45 to 50 seconds !
though there are no  network issues.

 Any directions on how to get around this problem ?  Can it controlled via
 specific share level/global settings in smb.conf ?




 - Supriya

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share Access Delay !

2011-01-12 Thread Daniel Müller
Be shure it is no firewall issue!??
Seems you have a problem resolving the ip of the linux.
You can put the ip and name of the linux in the host file of your w2003 and
vice versa in the host file of your linux.
Or you use dns or wins to do so

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Supriya Kher
Gesendet: Mittwoch, 12. Januar 2011 09:01
An: samba@lists.samba.org
Betreff: [Samba] Samba Share Access Delay !

  Hello Samba Users,



 I am using Samba for our project needs to share folders between a Windows
 Server 2003 machine and a

 RedHat Linux machine. I am facing issues with Samba shares (Samba Version
 3.5.5 for RHEL 4 x86_64).  The scenario is as below –


 The windows machine has a couple of shared folders, one of them being * **
 C:\output* The windows shares are mounted onto corresponding mount points
 in linux

and the same are exposed to the external world via samba running on the
 Linux machine.



 Now, the Windows machine kicks off a few jobs and as a part of those jobs
 it writes to the *output *shared folder. This write request is directed
 via Samba as the

windows machine writes to \\Linux IPAddress\output.  It has been
observed consistently that accessing the shared folder from windows using
UNC as \\LinuxIpAddress\output
 takes a very long time. Each access takes around 45 to 50 seconds !
though there are no  network issues.

 Any directions on how to get around this problem ?  Can it controlled via
 specific share level/global settings in smb.conf ?




 - Supriya

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Share Access Delay !

2011-01-12 Thread Linda Walsh

Supriya Kher wrote:

windows machine writes to \\Linux IPAddress\output.  It has been
observed consistently that accessing the shared folder from windows using
UNC as \\LinuxIpAddress\output
 takes a very long time. Each access takes around 45 to 50 seconds !
though there are no  network issues.


Any directions on how to get around this problem ?  Can it controlled via
specific share level/global settings in smb.conf ?

---

I had something *like* this, but not quite this bad -- it was very 
persistent -- no matter what program I ran, my max xfer speed was 
about 2MB/s (read  write).


Nothing I tried fixed it -- until I rebooted.

Then it went mysteriously away (back to full speed of 119M/125MB 
read/write).


I looked at the the wireshark traces for the bad-case -- the only odd thing
I saw (which wouldn't explain the whole thing) was that my max window size had
dropped to under 64k (normal is 1M).  

It hasn't repeated. 

It _sorta_,  *looked* like something was inserting itself to look at the packets in and 
out and doing a really bad job of being 'transparent'.  But since it hasn't re-occurred,

I haven't thought much about it.

In my case, it *appeared* to affect all network traffic (I kept checking the 
sync rate on the line, figuring it had to be syncing at 10Mb and not 1Gb, but 
wasn't the case).

You might try a 'wireshark' trace?  Try to see who is doing the 'lagging'



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] SAMBA share permissions all other known users

2010-09-15 Thread *...@ppu
hi all,

i have integrated SAMBA with active directory and everthing is working .
however in share defination i want to give write permissions to  few users
and read access to few users.

i have mentioned  write list and read list in samba config file as follows.
this is working but all other known users (domain users) are getting read
access . is there any way to restirct the same :( . this problem is eating
my head.

[shared]
comment =  Management
path = /shares/Reports
write list = RAJU\bk1234
read list = RAJU\pa7263
directory mask = 0777

Please help me out.

Regards
Appaji.p
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] SAMBA share permissions all other known users

2010-09-15 Thread Dale Schroeder

 Add valid users = RAJU\bk1234, RAJU\pa7263 to the share definition.

Dale


 valid users (S)

   This is a list of users that should be allowed to login to this
   service. Names starting with '@', '+' and '' are interpreted using
   the same rules as described in the /|invalid users|/ parameter.

   If this is empty (the default) then any user can login. If a
   username is in both this list and the /|invalid users|/ list then
   access is denied for that user.

   The current servicename is substituted for /|%S|/. This is useful in
   the [homes] section.

   Default: //|valid users|/ = | # No valid users list (anyone can
   login) | /

   Example: //|valid users|/ = |greg, @pcusers| /



On 09/15/2010 6:27 AM, *...@ppu wrote:

hi all,

i have integrated SAMBA with active directory and everthing is working .
however in share defination i want to give write permissions to  few users
and read access to few users.

i have mentioned  write list and read list in samba config file as follows.
this is working but all other known users (domain users) are getting read
access . is there any way to restirct the same :( . this problem is eating
my head.

[shared]
 comment =  Management
 path = /shares/Reports
 write list = RAJU\bk1234
 read list = RAJU\pa7263
 directory mask = 0777

Please help me out.

Regards
Appaji.p

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] SAMBA share permissions all other known users

2010-09-15 Thread *...@ppu
Thanks dale .

i have used valid users with write list and read list . it is working fine
now . thanks a lot.

On Wed, Sep 15, 2010 at 11:04 PM, Dale Schroeder 
d...@briannassaladdressing.com wrote:

  Add valid users = RAJU\bk1234, RAJU\pa7263 to the share definition.

 Dale
 valid users (S)

 This is a list of users that should be allowed to login to this service.
 Names starting with '@', '+' and '' are interpreted using the same rules as
 described in the *invalid users* parameter.

 If this is empty (the default) then any user can login. If a username is in
 both this list and the *invalid users* list then access is denied for that
 user.

 The current servicename is substituted for *%S*. This is useful in the
 [homes] section.

 Default: *valid users = # No valid users list (anyone can login) *

 Example: *valid users = greg, @pcusers *


 On 09/15/2010 6:27 AM, *...@ppu wrote:

 hi all,

 i have integrated SAMBA with active directory and everthing is working .
 however in share defination i want to give write permissions to  few users
 and read access to few users.

 i have mentioned  write list and read list in samba config file as follows.
 this is working but all other known users (domain users) are getting read
 access . is there any way to restirct the same :( . this problem is eating
 my head.

 [shared]
 comment =  Management
 path = /shares/Reports
 write list = RAJU\bk1234
 read list = RAJU\pa7263
 directory mask = 0777

 Please help me out.

 Regards
 Appaji.p


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba share browseable to certain IP networks

2010-01-05 Thread Patrik Hall
Hello.

I have set up a shared samba server for two organisations.

Using hosts allow I can permit access to a share from a certain IP network,
however, the share is browseable still for everybody. How can I prevent
that, is that possible?

Regards,

Patrik Hall
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] [samba] Share authentication via AD

2009-09-16 Thread Matt Delves
Hey folks,
I've got a server setup that uses samba to join to the Windows 2k3
Active Directory. I've also created a shared folder on that server.

The problem I'm experiencing is that I'm unable to authenticate to the
share and thus browse it.

The smb.conf file is:
==
[global]
   workgroup = domain
   server string = Samba Server Version %v
   security = ads
   local master = no
   preferred master = no
   load printers = yes
   cups options = raw
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/bash
   winbind use default domain = yes
   password server = AD Servers
   realm = Kerberos Realm
   winbind nested groups = yes

[rpms]
  Comment = SLES 10 RPMs
  path = /srv/www/htdocs/sles
  read only = No
  force group = bob
  force user = bob
  create mask = 0664
==

As far as the basics, the server is joined successfully to the domain
and I can browse to it from a windows box. I know that winbind is
functioning as I can login (via local or ssh) using my Active Directory
username and password.

Any help in identifying problems with this configuration would be
appreciated. 

Thanks,
Matt Delves

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba share of a NFS mount

2009-05-04 Thread Tim Boyer
I've got a NFS directory that's shared among my RHEL5 servers that I'd like
to give access to a couple of Win2K servers, also.  The easiest way to do so
is to NFS mount the directory on my Samba server, and export the directory
as a Samba share.

It works.  Kind of.  But it redefines 'slow'.

Copying the file from a normal Samba share takes under 10 seconds on a slow
network:

[c:\program files\resource kit]timethis.exe copy y:\testfile \tmp

TimeThis :  Command Line :  copy y:\testfile \tmp
TimeThis :Start Time :  Mon May 04 09:24:30 2009

Y:\testfile = C:\tmp\testfile
 1 file copied

TimeThis :  Command Line :  copy y:\testfile \tmp
TimeThis :Start Time :  Mon May 04 09:24:30 2009
TimeThis :  End Time :  Mon May 04 09:24:39 2009
TimeThis :  Elapsed Time :  00:00:09.123

But the same file from a NFS share exported via Samba takes five times as
long:

[c:\program files\resource kit]timethis.exe copy x:\tmp\testfile \tmp

TimeThis :  Command Line :  copy x:\tmp\testfile \tmp
TimeThis :Start Time :  Mon May 04 09:22:07 2009

X:\tmp\testfile = C:\tmp\testfile
 1 file copied

TimeThis :  Command Line :  copy x:\tmp\testfile \tmp
TimeThis :Start Time :  Mon May 04 09:22:07 2009
TimeThis :  End Time :  Mon May 04 09:22:51 2009
TimeThis :  Elapsed Time :  00:00:44.295

The NFS export looks like so:

/var/ftp/pub192.168.0.0/255.255.0.0(rw,no_root_squash,async)

and the smb.conf entry like this:

[nfs]
   comment = tolstoy nfs directory
   path = /mnt/rhel
   read only = no
   browseable = yes
   public = yes  
   create mask = 0666

Pointers in the right direction - or where to start looking - greatly
appreciated.  Thanks...

-- 
Tim Boyer
Denman Tire Corporation

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba share of a NFS mount

2009-05-04 Thread Michael Heydon

Tim Boyer wrote:

The easiest way to do so
is to NFS mount the directory on my Samba server, and export the directory
as a Samba share.
  


It's been a while and I don't remember the specifics, but there are 
problems relating to locking when you do this.


From memory it is OK as long as the samba server is the only NFS client 
accessing that share, but as soon as you have an NFS client accessing 
files that the samba clients have open things start to get messy. The 
proper way to do it is to run a samba server on the NFS server itself.


*Michael Heydon - IT Administrator *
micha...@jaswin.com.au mailto:micha...@jaswin.com.au

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba share is not working

2009-01-13 Thread Lavannya
Hi ,


I am unable to mount the share  with centrify-samba   .   Here is the details.

   server  :   Red Hat Enterprise Linux Server release 5 (Tikanga) 
   
   kernel  :   2.6.18-8.el5xen

   The rpms installed asssocited to samba  and  centrify :  
CentrifyDC-samba-3.0.23b-3.0.4.434

CentrifyDC-3.0.8-809

CentrifyDC-openssh-4.3p2-3.0.0.172

CentrifyDC-idmap-3.0.4-434

   Here is the  /etc/samba/smb.conf  :
__
 [global]
security = ads
realm = xx.xx.ORG
workgroup = EHEALTH
netbios name = lnlab013
server string = Samba-CDC

auth methods = guest, sam, winbind
machine password timeout = 0

idmap backend = /usr/share/centrifydc/lib/idmap_centrifydc.so
idmap enable cache = No
idmap uid = 500-1
idmap gid = 500-1

template shell = /bin/bash

client use spnego = no
server signing = auto
client signing = auto

winbind use default domain = Yes
winbind enum users = No
winbind enum groups = No
winbind nested groups = Yes

log file = /var/log/samba/smbd.log


[data]
path = /data
browseable = yes
writeable = yes
guest ok = yes
create mask = 0777
force directory mode = 777
force group = users
___

   Cenrify is working fine ,  also the centrify-ssh,  The user/pass are  
authenticated  from Active
   Directory.  There is no issues.

   But when I am trying  to mount the unix share from my latop, then it is 
not mounting.  
   The errors are in the log file as follows:

   2009/01/13 15:13:47, 0] libads/kerberos.c:ads_kinit_password(208)
   kerberos_kinit_password server$@FQDN failed: Preauthentication failed
   2009/01/13 15:13:47, 0] printing/nt_printing.c:nt_printing_init(649)
   nt_printing_init: error checking published printers: WERR_ACCESS_DENIED
   [2009/01/13 15:13:47, 0] 
auth/auth_util.c:create_builtin_administrators(784)
   create_builtin_administrators: Failed to create Administrators
   [2009/01/13 15:13:47, 0] auth/auth_util.c:create_builtin_users(750)
   create_builtin_users: Failed to create Users
   [2009/01/13 15:20:32, 1] smbd/sesssetup.c:reply_spnego_kerberos(202)
Failed to verify incoming ticket!

My confusion is , the same login i am using  to login to the  unix  hosts,  
but with same user/pass
samba  is not accepting.

I never worked  on samba and no concept either I have  with windows...
Help is really appreciated.

Thanks again



  
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share to use AD for authentication

2008-12-23 Thread James D. Parra
Hello,

I setup a Linux box to join an AD domain, which it did, and set up a share
on the Linux box, but I am not sure how to have the samba share authenticate
users via the AD.

Does anyone have any pointers on how to do this?

Thank you,

James 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba share to use AD for authentication

2008-12-23 Thread Kums
James,

You need to use Winbind to enable Samba authenticate users via AD.

Please see the following link for more info:
http://technet.microsoft.com/en-au/magazine/dd228986.aspx

Also, you need to add AD info in smb.conf
workgroup = DOMAIN_NAME
realm = AD_REALM
security = ADS
auth methods = winbind
password server = AD_Server_IP

HTH,
-Kums

On Tue, Dec 23, 2008 at 5:03 PM, James D. Parra jam...@musicreports.comwrote:

 Hello,

 I setup a Linux box to join an AD domain, which it did, and set up a share
 on the Linux box, but I am not sure how to have the samba share
 authenticate
 users via the AD.

 Does anyone have any pointers on how to do this?

 Thank you,

 James
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Share Mounts with Java

2008-03-27 Thread josgreen
Hello,

  I am developing a Java application that requires me to read from and 
write to a samba share. When developing in a windows environment this was not a 
problem. I mounted the share as M:/, built a path to a file, checked if the 
file exists using the Java function file.exists(), and went on my merry way. 
Now I am developing in a Linux environment(SuSE 10). I mount the samba share to 
a folder and when I build the path it will find and display the image, however 
the check in Java(file.exists()) does not function properly. I ALWAYS get a 
return value of false. Any help with this issue would be appreciated. Thanks!!!

   Joe

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Share Mounts with Java

2008-03-27 Thread Udo Rader
On Thu, 2008-03-27 at 08:05 -0600, [EMAIL PROTECTED] wrote:
 Hello,
 
   I am developing a Java application that requires me to read from
  and write to a samba share. When developing in a windows environment
  this was not a problem. I mounted the share as M:/, built a path to
  a file, checked if the file exists using the Java function
  file.exists(), and went on my merry way. Now I am developing in a
  Linux environment(SuSE 10). I mount the samba share to a folder and
  when I build the path it will find and display the image, however the
  check in Java(file.exists()) does not function properly. I ALWAYS get
  a return value of false. Any help with this issue would be
  appreciated. Thanks!!!

please show the contents of file.getAbsolutePath() resp.
file.getRelativePath() and how you mounted the share (mount options).

What I could think of are two things:

1. upper/lowercasing problem
---
eg. when you told samba to ignore the case, but (maybe) Java doesn't
handle it correctly when using file.exists()

2. wrong path separators
---
What kind of path separators do you use (backslash vs. forwardslash)?

-- 
Udo Rader

bestsolution.at EDV Systemhaus GmbH
http://www.bestsolution.at



signature.asc
Description: This is a digitally signed message part
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Samba Share Mounts with Java

2008-03-27 Thread Udo Rader
On Thu, 2008-03-27 at 12:66 -0600, [EMAIL PROTECTED] wrote:
 
  Udo Rader [EMAIL PROTECTED] 03/27/08 8:37 AM  
 On Thu, 2008-03-27 at 08:05 -0600, [EMAIL PROTECTED] wrote:
  Hello,
  
I am developing a Java application that requires me to read
 from
   and write to a samba share. When developing in a windows
 environment
   this was not a problem. I mounted the share as M:/, built a path
 to
   a file, checked if the file exists using the Java function
   file.exists(), and went on my merry way. Now I am developing in a
   Linux environment(SuSE 10). I mount the samba share to a folder and
   when I build the path it will find and display the image, however
 the
   check in Java(file.exists()) does not function properly. I ALWAYS
 get
   a return value of false. Any help with this issue would be
   appreciated. Thanks!!!

 Udo,
 
 Thanks for taking a look at my issue. I used the following command to
 mount the share...
 
 mount -t smbfs -o username=mediauser,password-med08cis
 //132.32.43.11/media
 /home/josgreen/tools/jakarto-tomcat-5.0.19/webapps/associate/media
 
 file.getAbsolutePath - /media/associate/9782/facial/9782_f.jpg
 file.getPath - /media/associate/9782/facial/9782_f.jpg
 
 As just another FYI I should also mention that I am running tomcat as
 my application server. Thanks again!

Hmm, your samba mount is in 

/home/josgreen/tools/jakarto-tomcat-5.0.19/webapps/associate/media

but the file you are looking for is in 

/media/associate/9782/facial/9782_f.jpg

so that cannot work at all.

Either mount your samba share like this

% mount -t smbfs -o username=mediauser,password-med08cis
//132.32.43.11/media /media

or correct the path of your file object

or maybe symlink the directory like this:

% ln
-s /home/josgreen/tools/jakarto-tomcat-5.0.19/webapps/associate/media /media

This is by no means a samba problem :-)

Please update your samba password now, because everybody on this list
knows it now :-)

-- 
Udo Rader

bestsolution.at EDV Systemhaus GmbH
http://www.bestsolution.at


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] Samba share over a NFS mount (tuning)

2008-02-13 Thread Mathieu Beaudoin
Hi,

I have a server that run OpenSuse 10.3, this server run VMware Server and
host an OpenSuse 10.3 virtual machine witch is a Samba file server for my
windows clients. The goal behind having a OpenSuse hosting an OpenSuse
virtual machine is to separate the configurations from the data so I can
easily change the configurations without affecting the data. The host keep
all the data and share it with the virtual machine with NFS v3, so the
virtual machine mount the NFS share and then a use Samba 3.0.26a to share
the NFS mounted folder for my windows clients. The network I use between my
host and my virtual machine is an Host-only virtual network. My virtual
machine use a bridged network over a dedicated 1Gb Ethernet card to
communicate with the windows clients.

 

I reuse a smb.conf from the previous Samba (3.0.25b) file server witch was
functioning with absolutely no problems.

 

The problem I have with my new Samba file server is that my Vista client
have a 20 to 60 second delay when they open a MS Office 2007 file. They have
the same delay with MS Office 2003 and all the Office's file the Vista
clients open with MS Office 2003 are read only. I think it is a file lock
issue because went I disable the file lock at the NFS mount or in Samba
smb.conf file. In my case, I just cannot disable file lock in my production
environment.

 

Thanks for your help,

 

Mathieu Beaudoin

Responsable des T.I.

CVT Corp

Technologies de vitesse variable

Variable Speed Technologies

 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba share setup witn nt acl permissions

2008-01-30 Thread joel valenzuela
Hi all,

I am trying to setup a file server using nt acl -like permissioning(like 
the ones with windows server 2003) but dunno where to start. I am switching to 
Samba because of speed,less maintenance and most of all FREE! Can anyone post 
me the step by step solution(guide) or point me in the right direction 
specifically on installing samba with nt-acl like permissioning?

Thanks.

Joel

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Share only works when NFS exported to another machine?

2008-01-03 Thread Paul Hobbs

Hi,

We have an Areca ARC-1170 SATA RAID Controller with 6 x 1TB Seagate
Barracuda ST31000340NS drives.
These drives are configured as a raid 5 (giving a total of 4.5 TB ext3
filesystem) we have used the
64bit LBA option because our array is greater than 2TB.

This all works fine until we try to use it as a Samba share, when we try to
access the share it does
not allow access, however if we NFS export the 4.5TB filesystem to another
machine and then create the
Samba share on the other machine it works fine. Has anyone seen this before
or have any idea as to what
could be causing this problem?

Many Thanks

Paul

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share access from local server account

2007-09-20 Thread Paul Roberts

 
Hi,

I have Samba up and running successfully.

 I can use domain accounts to access the shares fine, even the guest account
can access the Samba shares.

What the problem is is that I have a server that uses a local account for
IIS (IUSR_WEBSITE). 

I want this user to be able to access the files on the share.

 
Regards 
  
-
Paul Roberts

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba share problem

2007-08-21 Thread John Drescher
On 8/20/07, sannas_2007 [EMAIL PROTECTED] wrote:
  Hi,
   I need your help!
   I want to realize samba usage below, but I don't know how to do it.
   samba server is redhat linux AS 4.0 up4 i386, samba version is 
 samba-3.0.10-1.4E.9.
 When I create share and make all users and groups excepts valid users and 
 groups  not see this share name in network
 neighbor,I do not use the options ' browsable=no',because using it will let 
 all valid users and group can not see the share.
   for example,add share in smb.conf
 [share_test]
  path=/data
  valid users=root,user1,user2
  writable=yes
user1,user2 login samba server and can see sharename 'share_test' and 
 access it in network neighbor, other users login samba server and can not see 
 sharename 'share_test'.

So you only want certain users to see a share? I do not think this is
possible. I let everyone see my shares but only the users that are
allowed to access the data can open the share.

John
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba share problem

2007-08-21 Thread Charles Marcus

So you only want certain users to see a share? I do not think this is
possible. I let everyone see my shares but only the users that are
allowed to access the data can open the share.


I don't use it, but I thought this is what the 'hide_unreadable' option 
was for?


--

Best regards,

Charles
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba share problem

2007-08-21 Thread John Drescher

 I don't use it, but I thought this is what the 'hide_unreadable' option
 was for?

Thanks for the info. I did not know that.

John
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba share problem

2007-08-20 Thread sannas_2007
 Hi,
  I need your help!
  I want to realize samba usage below, but I don't know how to do it.
  samba server is redhat linux AS 4.0 up4 i386, samba version is 
samba-3.0.10-1.4E.9.
When I create share and make all users and groups excepts valid users and 
groups  not see this share name in network
neighbor,I do not use the options ' browsable=no',because using it will let all 
valid users and group can not see the share.
  for example,add share in smb.conf
[share_test]
 path=/data
 valid users=root,user1,user2
 writable=yes
   user1,user2 login samba server and can see sharename 'share_test' and access 
it in network neighbor, other users login samba server and can not see 
sharename 'share_test'.

  I don't know how to resolve it. need your help! thank you!
 sannas  
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SAMBA: Share specific log files

2007-05-18 Thread Cleber P. de Souza

Maybe the file descriptors wasn't properly closed yet.
I think that a stop and start will force the process to immediately obeys you.


On 5/18/07, Srini [EMAIL PROTECTED] wrote:

Hi all,

We find that the log messages gets correctly redirected after a
certain period of time from a samba service restart (3 or 4 minutes).
Till this initial period of time, it looks like the log messages are
getting redirected to the default log file but after this time and
with the below code change, it is getting redirected into the
appropriate share specific log file. Does anyone have any ideas on why
this is not happening from beginning??

Thanks

Srini

On 5/17/07, Srini [EMAIL PROTECTED] wrote:
 No. They dont seem to work for being used in log file. Apparently
 these can not be used for log file names in the configuration file but
 for other execution scripts (preexec and postexec).

 Srini

 On 5/16/07, Cleber P. de Souza [EMAIL PROTECTED] wrote:
  The share variables %P and %S don't help you?
  Like this:
  log file = /var/log/samba/%S.log
 
 
  On 5/16/07, Srini [EMAIL PROTECTED] wrote:
   Hi all,
  
   We are trying to print the log messages pertaining to each share in a
   different log file for auditing purposes.
  
   We are using Samba v3.0.20b.
  
   We are trying to modify the file
   smbd/service.c::make_connection_snum() function by changing the log
   file full path. The code changes that is done are as follows:
  
  char logfilefullpath[70];
  char sharename[256];
  
  safe_strcpy_fn (__FILE__, __LINE__ ,logfilefullpath,
   /log/sharenet/, sizeof (/log/sharenet/));
  safe_strcat_fn
   (__FILE__,__LINE__,logfilefullpath,lp_servicename(snum),
   sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
  safe_strcat_fn (__FILE__,__LINE__,logfilefullpath,.log,
   sizeof(/log/sharenet/)+sizeof(lp_servicename(snum))+sizeof(.log));
  
  safe_strcpy_fn
   (__FILE__,__LINE__,sharename,lp_servicename(snum),
   sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
  lp_set_logfile(logfilefullpath);
  safe_strcpy_fn
   (__FILE__,__LINE__,debugf,logfilefullpath,sizeof(logfilefullpath));
  
  if( DEBUGLVL( IS_IPC(conn) ? 3 : 1 ) ) {
  dbgtext( %s (%s) , get_remote_machine_name(),
   conn-client_address );
  dbgtext( %s, srv_is_signing_active() ? signed  : );
  dbgtext( connect to service %s , lp_servicename(snum) );
  dbgtext( initially as user %s , user );
  dbgtext( (uid=%d, gid=%d) , (int)geteuid(), 
(int)getegid() );
  dbgtext( (pid %d)\n, (int)sys_getpid() );
  }
  
   We have done a similar code snipped in the relevant portion of the
   code in open_file part of Samba as well. However we find that the log
   file randomly gets written to the default log file (log file= variable
   in smb.conf) or sometimes to the share specific log file (that we have
   attempted above). It looks like that this was a buffering problem and
   so we tried to put in dbgflush() routine as well after calling
   dbgtext() macro. Still with no success...
  
   Has anyone tried to modify the source code to generate share specific
   log trails - either by modifying the source code or without? If so,
   can the experts guide us on this?
  
   Thanks in advance for all your inputs and help,
  
   Srini
   --
   To unsubscribe from this list go to the following URL and read the
   instructions:  https://lists.samba.org/mailman/listinfo/samba
  
 
 
  --
  ***
  Cleber P. de Souza
 





--
***
Cleber P. de Souza
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SAMBA: Share specific log files

2007-05-17 Thread Srini

Hi all,

We find that the log messages gets correctly redirected after a
certain period of time from a samba service restart (3 or 4 minutes).
Till this initial period of time, it looks like the log messages are
getting redirected to the default log file but after this time and
with the below code change, it is getting redirected into the
appropriate share specific log file. Does anyone have any ideas on why
this is not happening from beginning??

Thanks

Srini

On 5/17/07, Srini [EMAIL PROTECTED] wrote:

No. They dont seem to work for being used in log file. Apparently
these can not be used for log file names in the configuration file but
for other execution scripts (preexec and postexec).

Srini

On 5/16/07, Cleber P. de Souza [EMAIL PROTECTED] wrote:
 The share variables %P and %S don't help you?
 Like this:
 log file = /var/log/samba/%S.log


 On 5/16/07, Srini [EMAIL PROTECTED] wrote:
  Hi all,
 
  We are trying to print the log messages pertaining to each share in a
  different log file for auditing purposes.
 
  We are using Samba v3.0.20b.
 
  We are trying to modify the file
  smbd/service.c::make_connection_snum() function by changing the log
  file full path. The code changes that is done are as follows:
 
 char logfilefullpath[70];
 char sharename[256];
 
 safe_strcpy_fn (__FILE__, __LINE__ ,logfilefullpath,
  /log/sharenet/, sizeof (/log/sharenet/));
 safe_strcat_fn
  (__FILE__,__LINE__,logfilefullpath,lp_servicename(snum),
  sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
 safe_strcat_fn (__FILE__,__LINE__,logfilefullpath,.log,
  sizeof(/log/sharenet/)+sizeof(lp_servicename(snum))+sizeof(.log));
 
 safe_strcpy_fn
  (__FILE__,__LINE__,sharename,lp_servicename(snum),
  sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
 lp_set_logfile(logfilefullpath);
 safe_strcpy_fn
  (__FILE__,__LINE__,debugf,logfilefullpath,sizeof(logfilefullpath));
 
 if( DEBUGLVL( IS_IPC(conn) ? 3 : 1 ) ) {
 dbgtext( %s (%s) , get_remote_machine_name(),
  conn-client_address );
 dbgtext( %s, srv_is_signing_active() ? signed  : );
 dbgtext( connect to service %s , lp_servicename(snum) );
 dbgtext( initially as user %s , user );
 dbgtext( (uid=%d, gid=%d) , (int)geteuid(), (int)getegid() 
);
 dbgtext( (pid %d)\n, (int)sys_getpid() );
 }
 
  We have done a similar code snipped in the relevant portion of the
  code in open_file part of Samba as well. However we find that the log
  file randomly gets written to the default log file (log file= variable
  in smb.conf) or sometimes to the share specific log file (that we have
  attempted above). It looks like that this was a buffering problem and
  so we tried to put in dbgflush() routine as well after calling
  dbgtext() macro. Still with no success...
 
  Has anyone tried to modify the source code to generate share specific
  log trails - either by modifying the source code or without? If so,
  can the experts guide us on this?
 
  Thanks in advance for all your inputs and help,
 
  Srini
  --
  To unsubscribe from this list go to the following URL and read the
  instructions:  https://lists.samba.org/mailman/listinfo/samba
 


 --
 ***
 Cleber P. de Souza



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SAMBA: Share specific log files

2007-05-16 Thread Cleber P. de Souza

The share variables %P and %S don't help you?
Like this:
log file = /var/log/samba/%S.log


On 5/16/07, Srini [EMAIL PROTECTED] wrote:

Hi all,

We are trying to print the log messages pertaining to each share in a
different log file for auditing purposes.

We are using Samba v3.0.20b.

We are trying to modify the file
smbd/service.c::make_connection_snum() function by changing the log
file full path. The code changes that is done are as follows:

   char logfilefullpath[70];
   char sharename[256];

   safe_strcpy_fn (__FILE__, __LINE__ ,logfilefullpath,
/log/sharenet/, sizeof (/log/sharenet/));
   safe_strcat_fn
(__FILE__,__LINE__,logfilefullpath,lp_servicename(snum),
sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
   safe_strcat_fn (__FILE__,__LINE__,logfilefullpath,.log,
sizeof(/log/sharenet/)+sizeof(lp_servicename(snum))+sizeof(.log));

   safe_strcpy_fn
(__FILE__,__LINE__,sharename,lp_servicename(snum),
sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
   lp_set_logfile(logfilefullpath);
   safe_strcpy_fn
(__FILE__,__LINE__,debugf,logfilefullpath,sizeof(logfilefullpath));

   if( DEBUGLVL( IS_IPC(conn) ? 3 : 1 ) ) {
   dbgtext( %s (%s) , get_remote_machine_name(),
conn-client_address );
   dbgtext( %s, srv_is_signing_active() ? signed  : );
   dbgtext( connect to service %s , lp_servicename(snum) );
   dbgtext( initially as user %s , user );
   dbgtext( (uid=%d, gid=%d) , (int)geteuid(), (int)getegid() );
   dbgtext( (pid %d)\n, (int)sys_getpid() );
   }

We have done a similar code snipped in the relevant portion of the
code in open_file part of Samba as well. However we find that the log
file randomly gets written to the default log file (log file= variable
in smb.conf) or sometimes to the share specific log file (that we have
attempted above). It looks like that this was a buffering problem and
so we tried to put in dbgflush() routine as well after calling
dbgtext() macro. Still with no success...

Has anyone tried to modify the source code to generate share specific
log trails - either by modifying the source code or without? If so,
can the experts guide us on this?

Thanks in advance for all your inputs and help,

Srini
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba




--
***
Cleber P. de Souza
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SAMBA: Share specific log files

2007-05-16 Thread Srini

No. They dont seem to work for being used in log file. Apparently
these can not be used for log file names in the configuration file but
for other execution scripts (preexec and postexec).

Srini

On 5/16/07, Cleber P. de Souza [EMAIL PROTECTED] wrote:

The share variables %P and %S don't help you?
Like this:
log file = /var/log/samba/%S.log


On 5/16/07, Srini [EMAIL PROTECTED] wrote:
 Hi all,

 We are trying to print the log messages pertaining to each share in a
 different log file for auditing purposes.

 We are using Samba v3.0.20b.

 We are trying to modify the file
 smbd/service.c::make_connection_snum() function by changing the log
 file full path. The code changes that is done are as follows:

char logfilefullpath[70];
char sharename[256];

safe_strcpy_fn (__FILE__, __LINE__ ,logfilefullpath,
 /log/sharenet/, sizeof (/log/sharenet/));
safe_strcat_fn
 (__FILE__,__LINE__,logfilefullpath,lp_servicename(snum),
 sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
safe_strcat_fn (__FILE__,__LINE__,logfilefullpath,.log,
 sizeof(/log/sharenet/)+sizeof(lp_servicename(snum))+sizeof(.log));

safe_strcpy_fn
 (__FILE__,__LINE__,sharename,lp_servicename(snum),
 sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
lp_set_logfile(logfilefullpath);
safe_strcpy_fn
 (__FILE__,__LINE__,debugf,logfilefullpath,sizeof(logfilefullpath));

if( DEBUGLVL( IS_IPC(conn) ? 3 : 1 ) ) {
dbgtext( %s (%s) , get_remote_machine_name(),
 conn-client_address );
dbgtext( %s, srv_is_signing_active() ? signed  : );
dbgtext( connect to service %s , lp_servicename(snum) );
dbgtext( initially as user %s , user );
dbgtext( (uid=%d, gid=%d) , (int)geteuid(), (int)getegid() );
dbgtext( (pid %d)\n, (int)sys_getpid() );
}

 We have done a similar code snipped in the relevant portion of the
 code in open_file part of Samba as well. However we find that the log
 file randomly gets written to the default log file (log file= variable
 in smb.conf) or sometimes to the share specific log file (that we have
 attempted above). It looks like that this was a buffering problem and
 so we tried to put in dbgflush() routine as well after calling
 dbgtext() macro. Still with no success...

 Has anyone tried to modify the source code to generate share specific
 log trails - either by modifying the source code or without? If so,
 can the experts guide us on this?

 Thanks in advance for all your inputs and help,

 Srini
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba



--
***
Cleber P. de Souza


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] SAMBA: Share specific log files

2007-05-15 Thread Srini

Hi all,

We are trying to print the log messages pertaining to each share in a
different log file for auditing purposes.

We are using Samba v3.0.20b.

We are trying to modify the file
smbd/service.c::make_connection_snum() function by changing the log
file full path. The code changes that is done are as follows:

  char logfilefullpath[70];
  char sharename[256];

  safe_strcpy_fn (__FILE__, __LINE__ ,logfilefullpath,
/log/sharenet/, sizeof (/log/sharenet/));
  safe_strcat_fn
(__FILE__,__LINE__,logfilefullpath,lp_servicename(snum),
sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
  safe_strcat_fn (__FILE__,__LINE__,logfilefullpath,.log,
sizeof(/log/sharenet/)+sizeof(lp_servicename(snum))+sizeof(.log));

  safe_strcpy_fn
(__FILE__,__LINE__,sharename,lp_servicename(snum),
sizeof(/log/sharenet/)+sizeof(lp_servicename(snum)));
  lp_set_logfile(logfilefullpath);
  safe_strcpy_fn
(__FILE__,__LINE__,debugf,logfilefullpath,sizeof(logfilefullpath));

  if( DEBUGLVL( IS_IPC(conn) ? 3 : 1 ) ) {
  dbgtext( %s (%s) , get_remote_machine_name(),
conn-client_address );
  dbgtext( %s, srv_is_signing_active() ? signed  : );
  dbgtext( connect to service %s , lp_servicename(snum) );
  dbgtext( initially as user %s , user );
  dbgtext( (uid=%d, gid=%d) , (int)geteuid(), (int)getegid() );
  dbgtext( (pid %d)\n, (int)sys_getpid() );
  }

We have done a similar code snipped in the relevant portion of the
code in open_file part of Samba as well. However we find that the log
file randomly gets written to the default log file (log file= variable
in smb.conf) or sometimes to the share specific log file (that we have
attempted above). It looks like that this was a buffering problem and
so we tried to put in dbgflush() routine as well after calling
dbgtext() macro. Still with no success...

Has anyone tried to modify the source code to generate share specific
log trails - either by modifying the source code or without? If so,
can the experts guide us on this?

Thanks in advance for all your inputs and help,

Srini
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba share not working

2007-03-01 Thread Volker Lendecke
On Wed, Feb 28, 2007 at 09:05:24AM -, Hafiz, W (Waqar) wrote:
 I've a simple setup where a Solaris 8 server running Samba 3.0.4 serves

3.0.4 is ancient, and 'security=server' is also very much
deprecated. You should upgrade to 3.0.24, join your box into
your AD and run winbind.

Volker


pgpv931aULDr0.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] Samba share not working

2007-02-28 Thread Hafiz, W \(Waqar\)
Guys,

I've a simple setup where a Solaris 8 server running Samba 3.0.4 serves
out a single share. User authentication is done through Windows Active
Directory servers. This has been working fine with a Windows client
where the user can map the share without any problems. The user has now
setup a new Windows server and is failing to map the share. I can see
the following error message in the samba log file:

tdb(/usr/local/samba/private/secrets.tdb): tdb_lock failed on list 53
ltype=2 (Interrupted system call)
[2007/02/27 10:32:31, 0]
tdb/tdbutil.c:tdb_chainlock_with_timeout_internal(77)
  tdb_chainlock_with_timeout_internal: alarm (10) timed out for key
SAMBAPWDSVR1 in tdb /usr/local/samba/private/secrets.tdb

Here is my Samba config file:

# Global parameters
[global]
workgroup = DOMAIN1
netbios name = PRODSERVER
server string = Samba Server
security = server
map to guest = Bad User
encrypt passwords = Yes
password server = sambapwdsvr1 sambapwdsvr2
password level = 8
username level = 8
max log size = 1024
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
wins server = 192.168.3.10 192.168.3.11
dead time = 2
interfaces = PRODSERVER/255.255.255.240
bind interfaces only = yes

# set local master to no if you don't want Samba to become a
master
# browser on your network. Otherwise the normal election rules
apply
domain master = no
local master = no
preferred master = no
os level = 0
max connections = 5000

[objects]
comment = Business Objects
path=/share/objects
valid users = cen.busobj
read only = no
create mask = 0644
directory mask = 0750


Any ideas/suggestions would be gratefully received.


_

This email (including any attachments to it) is confidential, legally 
privileged, subject to copyright and is sent for the personal attention of the 
intended recipient only. If you have received this email in error, please 
advise us immediately and delete it. You are notified that disclosing, copying, 
distributing or taking any action in reliance on the contents of this 
information is strictly prohibited. Although we have taken reasonable 
precautions to ensure no viruses are present in this email, we cannot accept 
responsibility for any loss or damage arising from the viruses in this email or 
attachments. We exclude any liability for the content of this email, or for the 
consequences of any actions taken on the basis of the information provided in 
this email or its attachments, unless that information is subsequently 
confirmed in writing. If this email contains an offer, that should be 
considered as an invitation to treat.
_
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share and --ghost'ed automount hierarchy

2006-10-10 Thread Robert Giles
Howdy folks - I have an automount hierarchy /data, with 30 or so mounts 
defined across various hosts on my network.  A few of these mountpoints 
are temporarily off-line, but still appear under /data, due to the --ghost 
option.


When I try to access the top level \\server\data from a Windows client, 
the directory listing in Explorer never returns because smbd is trying to 
stat these unavailable filesystems it thinks exist due to the --ghost 
option.


Is it possible to have smbd simply return the list of directories it finds 
(from the fake --ghost listing) without it causing the automounter to 
attempt a mount each directory?


I'm running SuSE 10.1, with Samba 3.0.22-11-SUSE-CODE10 and autofs 4.1.4 
on a 2.6.18-rc4 kernel (with SuSE 10.1 /proc/config.gz).  auto.master 
and the auto.data maps are stored in LDAP, if that makes a difference.


(another option might be to write a script to convert the auto.data map 
into an appropriate set of symbolic links to msdfs filesystems, install 
Samba on the various NFS servers, etc.  - but I'd like to try the easy 
option first - currently, none of the servers in auto.data provide SMB 
services).


---
Robert Giles Group System Administrator
SPD/ARL:UT  (512) 835-3077 ? Fax (512) 490-4244-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

RE: [Samba] Samba share access error Fedora core 5

2006-08-10 Thread John Mason
Well call me a doofus, this has been one of my problems for a few days
now!

Thanks for posting to the list!



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pavan
Sent: Wednesday, August 09, 2006 6:26 PM
To: [EMAIL PROTECTED]; 'Samba'
Subject: RE: [Samba] Samba share access error Fedora core 5


Hi Tim,
  
 Thanks for that, It have solved my problem. Hope this will be
useful for people on the list using FC 5.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 8:34 PM
To: Pavan
Subject: Re: [Samba] Samba share access error Fedora core 5

Pavan,

I had this exact same problem with my Fedora Core 5.  It's actually a
well
documented problem with the way Fedora Core 5 uses a system known as
SELinux,
which is on by default.

Try issuing the command 'setenforce 0' and see if that makes a
difference.

Quoting Pavan [EMAIL PROTECTED]:

 Hi,
SNIP

Hi,
 
   I have samba PDC running successfully on my server with 3
physical volumes running Fedora Core 5.
  
   Physical Volume 1 - OS installation
   Physical Volume 2 - All Company file shares
   Physical Volume 3 - Backup of files.
 
  I am facing a weird problem or may be somewhat unique to samba or
Fedora, that  I cannot access shares that are mounted and shared by
samba from the client machines from the Physical volumes 2  3. I just
receive an error as Network Path cannot be found including for the
samba domain administrator i.e. root. All users can access the shares
directly on the server.
 
Can anyone help me to overcome this problem??
 
Thanks in advance, I really spent more than 4hrs troubleshooting this.
 
 
Pavan.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share access error Fedora core 5

2006-08-09 Thread Pavan
Hi,
 
   I have samba PDC running successfully on my server with 3
physical volumes running Fedora Core 5.
  
   Physical Volume 1 - OS installation
   Physical Volume 2 - All Company file shares
   Physical Volume 3 - Backup of files.
 
  I am facing a weird problem or may be somewhat unique to samba or
Fedora, that  I cannot access shares that are mounted and shared by
samba from the client machines from the Physical volumes 2  3. I just
receive an error as Network Path cannot be found including for the
samba domain administrator i.e. root. All users can access the shares
directly on the server.
 
Can anyone help me to overcome this problem??
 
Thanks in advance, I really spent more than 4hrs troubleshooting this.
 
 
Pavan.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba share access error Fedora core 5

2006-08-09 Thread Pavan

Hi Tim,
  
 Thanks for that, It have solved my problem. Hope this will be
useful for people on the list using FC 5.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 8:34 PM
To: Pavan
Subject: Re: [Samba] Samba share access error Fedora core 5

Pavan,

I had this exact same problem with my Fedora Core 5.  It's actually a
well
documented problem with the way Fedora Core 5 uses a system known as
SELinux,
which is on by default.

Try issuing the command 'setenforce 0' and see if that makes a
difference.

Quoting Pavan [EMAIL PROTECTED]:

 Hi,
SNIP

Hi,
 
   I have samba PDC running successfully on my server with 3
physical volumes running Fedora Core 5.
  
   Physical Volume 1 - OS installation
   Physical Volume 2 - All Company file shares
   Physical Volume 3 - Backup of files.
 
  I am facing a weird problem or may be somewhat unique to samba or
Fedora, that  I cannot access shares that are mounted and shared by
samba from the client machines from the Physical volumes 2  3. I just
receive an error as Network Path cannot be found including for the
samba domain administrator i.e. root. All users can access the shares
directly on the server.
 
Can anyone help me to overcome this problem??
 
Thanks in advance, I really spent more than 4hrs troubleshooting this.
 
 
Pavan.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share on linux and Windows 2003 server R2

2006-07-27 Thread Marcus Hutchinson

Hi everyone

Has anyone been able to get windows 2003 server R2 to mount a Samba 
share from a RH9 server ?


using Samba release 3.0.23a

I haven't done this yet and if possible would like to know if it works 
before I make the attempt

is there any bizarre things involved ?

many thanks

Marcus Hutchinson
Digital Domain
Venice CA 90293


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba share permission

2006-07-12 Thread Julien de Luca {Integrated Systems Ltd}
Just finished setting up a samba Server and having problems with file
permissions. I have a main folder 'company' and subfolders like accounting,
human resources, marketing. Unfortunately I cannot create separate shares
for each folders as some members need to have access to all groups.. (I have
20 subfolders and 15 groups!). I also have a document management software
running on the same share and accessing all 20 subfolders!...

 

I have tried setting up smb.conf to restrict access according to group and
users. As soon as I implement some GROUP access on samba I start having
access problems whereby files cannot be accessed by members of that group.
If anyone can help by supplying a version of SMB.conf that should do the job
I would much appreciate! Any HELP is appreciated.. :-)

 

Julien

 

 

Julien 

 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share as document root in Windows XP

2006-05-24 Thread Jonas Höglund
I have a IIS 5 web server running on a Windows XP box. I want to use  
a Samba share (on a Mac OSX machine) as the www root (document root),  
but get access problems when I try doing so. I think my problem is  
related to this previous question I found in the list archives, but I  
couldn't find any answers. http://www.mail-archive.com/ 
samba@lists.samba.org/msg05340.html


I also found this at Microsoft's Knowledge Base, but I can't get it  
right. http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q256322


In regards to the Microsoft article I have four questions.
1. Is this relevant for Windows XP?
2. What's the Regedit key in XP? Is it MACHINE/System/ 
CurrentControlSet/Services/LanmanWorkstation/Parameters/ 
EnablePlainTextPasswor as suggested here http://lists.samba.org/ 
archive/samba/2003-February/061643.html
3. Microsoft says Map a drive letter to \\servername\iisroot using  
'root' and password. What do they mean with root. Samba root,  
Mac OSX root...???


Thanks in advance!
/jonas hoglund
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba share question

2006-05-22 Thread Barry, Christopher
read only = yes
admin user = wes
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 On Behalf Of Wesley Hobbie
 Sent: Saturday, May 20, 2006 9:33 PM
 To: samba@lists.samba.org
 Subject: [Samba] Samba share question
 
 I have the following Samba share:
  
 [Programs]
 writable = yes
 path = /home/wes/Download
  
 I want myself to have write access, and everyone else to have 
 read-only
 access.  The write access works fine when I authenticate, but 
 anyone that
 does not authenticate gets the you do not have permission error.  The
 /home/wes/Download folder ACL has read access to group and 
 others.  What do
 I need to do to fix that?
  
 Wes
  
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba share question

2006-05-21 Thread Wesley Hobbie
I have the guest account enabled.  However, if I create the same share in
say /var it works how I would like it to work, so I think it has something
to do with /home/wes which is forbidden to anyone but wes, even though I
have /home/wes/Downloads viewable by anyone.  So it appears that the
hierarchy has something to do with it.  Obviously a normal user does not
have permission to create a folder and share it from /var, and I do not want
everyone to have read access to /home/wes, is there some way I can make it
work that anyone (guest) can view the [Programs] share?

-Original Message-
From: Matthew Easton [mailto:[EMAIL PROTECTED] 
Sent: Saturday, May 20, 2006 9:01 PM
To: Wesley Hobbie
Cc: samba@lists.samba.org
Subject: Re: [Samba] Samba share question



On May 20, 2006, at 6:33 PM, Wesley Hobbie wrote:

 I have the following Samba share:

 [Programs]
 writable = yes
 path = /home/wes/Download

 I want myself to have write access, and everyone else to have read-
 only
 access.  The write access works fine when I authenticate, but  
 anyone that
 does not authenticate gets the you do not have permission error.  The
 /home/wes/Download folder ACL has read access to group and others.   
 What do
 I need to do to fix that?

You want people who don't authenticate to be able to read the share?   
Enable guest account in samba.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share question

2006-05-20 Thread Wesley Hobbie
I have the following Samba share:
 
[Programs]
writable = yes
path = /home/wes/Download
 
I want myself to have write access, and everyone else to have read-only
access.  The write access works fine when I authenticate, but anyone that
does not authenticate gets the you do not have permission error.  The
/home/wes/Download folder ACL has read access to group and others.  What do
I need to do to fix that?
 
Wes
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba share question

2006-05-20 Thread Matthew Easton


On May 20, 2006, at 6:33 PM, Wesley Hobbie wrote:


I have the following Samba share:

[Programs]
writable = yes
path = /home/wes/Download

I want myself to have write access, and everyone else to have read- 
only
access.  The write access works fine when I authenticate, but  
anyone that

does not authenticate gets the you do not have permission error.  The
/home/wes/Download folder ACL has read access to group and others.   
What do

I need to do to fix that?


You want people who don't authenticate to be able to read the share?   
Enable guest account in samba.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] SAMBA, share access and NAT Boxes

2006-02-01 Thread Gonçalo Neves
Good Morning,

I’ am responsible for distribute software in my company. It has several
networks, some of then behind NAT boxes. At this time samba, at debian server,
give access to users by IP. The problem is when I want to register one IP that
belongs to some computer behind nat. All computers from that sub networks will
have access :(  I’m thinking and perhaps change the security from share to user,
authenticating users through PAM could resolve the problem. Do you have some
tips to could help me?
Thanks in advance.
-- 
Gonçalo.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Share and FoxPro optimization

2005-12-22 Thread Tony Grace
 
 
Problem: Slow response to large tables via SMB share on FoxPro Database TSM.

I have a client running samba-3.0.10-1.fc2 on Fedora Core 2. 
I have done some searching and tried some settings, this is the basic set-up
for the share:

[data]
writeable = yes
path = /data/general
comment = Public Stuff
public = yes
veto oplock files = *.dbf/*.?dx/*.frx
strict locking = no

I have read that the
Lock spin count = x has a direct effect on the performance of FoxPro and MS
Access when shared on a SAMBA network share, but what values of x would you
recommend and is this the right track.
A windows share of the same data is significantly faster

Regards
Tony

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Share and FoxPro optimization

2005-12-22 Thread Gerald Drouillard

Tony Grace wrote:
 
 
Problem: Slow response to large tables via SMB share on FoxPro Database TSM.


I have a client running samba-3.0.10-1.fc2 on Fedora Core 2. 
I have done some searching and tried some settings, this is the basic set-up

for the share:

[data]
writeable = yes
path = /data/general
comment = Public Stuff
public = yes
veto oplock files = *.dbf/*.?dx/*.frx
strict locking = no

I have read that the
Lock spin count = x has a direct effect on the performance of FoxPro and MS
Access when shared on a SAMBA network share, but what values of x would you
recommend and is this the right track.
A windows share of the same data is significantly faster

Regards
Tony


Have a look at:
http://www.drouillard.ca/TipsTricks/Samba/Oplocks.htm

--
Regards
--
Gerald Drouillard
Technology Architect
Drouillard  Associates, Inc.
http://www.Drouillard.ca
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Share of NFS filesystem

2005-10-26 Thread Ulrich Bernhard
We have a samba share which is a NFS mounted filesystem with user quota. 
The samba server runs SuSE 9.2, the samba version is 3.0.20b. The 
filesystem is nfs mounted from a NetApp fileserver.


If a user on a windows (xp or 2k) client copies some files onto his 
samba share and needs more space than the quota allows, the copy 
operation ends without any error message! As I have seen in the samba 
server log, the server sends the error code 'NT_STATUS_DISK_FULL' during 
the close operation but it seems that windows is ignoring this error.


Is that a bug in our samba configuration or in the windows?

Thanks for any help or hint
Ulrich

--
 +---+
 | Ulrich Bernhard   |
 | Informatikdienste  Tel: (+41-44) 635 67 73|
 | Universitaet Zuerich   Fax: (+41-44) 635 45 05|
 | Winterthurerstr. 190  |
 | CH-8057 ZuerichEmail: [EMAIL PROTECTED] |
 | Switzerland   |
 +---+
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Share of NFS filesystem

2005-10-26 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ulrich Bernhard wrote:

| We have a samba share which is a NFS mounted filesystem
| with user quota. The samba server runs SuSE 9.2, the
| samba version is 3.0.20b. The filesystem is nfs mounted
| from a NetApp fileserver.

How do quotas work for you on a local file system?
What about other NFS mounted file systems?  Why guess
would be there's some issue with how the NetApp box and Samba are
interacting wrt to quota information.







cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
There's an anonymous coward in all of us.   --anonymous
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDX3bwIR7qMdg1EfYRAhUbAJ9D7ecomOoJCOMljii0GiP/Z+lrywCfc990
iT6J/XK5w8yawWwhjpHKGoI=
=ecll
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Share of NFS filesystem

2005-10-26 Thread Ulrich Bernhard
On a local disk with quota the 'over quota' error occured while writing 
to that disk and the windows box reports the error as 'disk is full'.
A local copy on the linux server to a local filesystem with quota (/data 
is on that filesystem):

cp /tmp/large-file /data
cp: writing `/data/large-file': Disk quota exceeded

Writing on the linux server to the nfs filesystem the 'over quota' error 
occured whis the close (the /home/rzubu directory is on the nfs filesystem):

cp /tmp/large-file /home/rzubu
cp: closing `/home/rzubu/large-file': Disk quota exceeded

Sorry I do not have other nfs mounted filesystems with quota.

Thanks

Ulrich



Gerald (Jerry) Carter wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ulrich Bernhard wrote:

| We have a samba share which is a NFS mounted filesystem
| with user quota. The samba server runs SuSE 9.2, the
| samba version is 3.0.20b. The filesystem is nfs mounted
| from a NetApp fileserver.

How do quotas work for you on a local file system?
What about other NFS mounted file systems?  Why guess
would be there's some issue with how the NetApp box and Samba are
interacting wrt to quota information.







cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
There's an anonymous coward in all of us.   --anonymous
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDX3bwIR7qMdg1EfYRAhUbAJ9D7ecomOoJCOMljii0GiP/Z+lrywCfc990
iT6J/XK5w8yawWwhjpHKGoI=
=ecll
-END PGP SIGNATURE-


--
 +---+
 | Ulrich Bernhard   |
 | Informatikdienste  Tel: (+41-44) 635 67 73|
 | Universitaet Zuerich   Fax: (+41-44) 635 45 05|
 | Winterthurerstr. 190  |
 | CH-8057 ZuerichEmail: [EMAIL PROTECTED] |
 | Switzerland   |
 +---+
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Share of NFS filesystem

2005-10-26 Thread Jeremy Allison
On Wed, Oct 26, 2005 at 03:02:23PM +0200, Ulrich Bernhard wrote:
 On a local disk with quota the 'over quota' error occured while writing 
 to that disk and the windows box reports the error as 'disk is full'.
 A local copy on the linux server to a local filesystem with quota (/data 
 is on that filesystem):
 cp /tmp/large-file /data
 cp: writing `/data/large-file': Disk quota exceeded
 
 Writing on the linux server to the nfs filesystem the 'over quota' error 
 occured whis the close (the /home/rzubu directory is on the nfs filesystem):
 cp /tmp/large-file /home/rzubu
 cp: closing `/home/rzubu/large-file': Disk quota exceeded
 
 Sorry I do not have other nfs mounted filesystems with quota.

NFS is allowed to return a disk full error on close - the trouble
is that Windows clients won't recognise it. You could try setting
strict allocate = yes to change when the writes occur from the
client NFS redirector - but this is going to be horribly slow.

The best thing to do with quota-enabled filesystems is to host
them on the Samba box I'm afraid.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share file permission problems

2005-07-29 Thread 鄭秀青
Dear all:

Is it possible to set Samba share (and the files under the share) from Samba 
using setfacl?  I want to set up a common directory for certain group of people 
to read, write and execute it (user::rwx group::rwx).  I assigned user1 as the 
owner of all the files under this common directory and here is the thing:
when user2(or any other users in the same group) accessed any of the files, she 
becomes owner of the files and the group permission changes to read only so 
other people in the group cannot edit the same file. 

Why is this happening?  Is it because it's not a good idea to use setfacl?  If 
so, is there any other tool to do it?  Thanks in advance for any help.

hc
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba share problem accessing from w2k client

2005-07-06 Thread J. van Santen
 Hi Joshua,
 I think that if the client workstation has not joined a domain, then it
 will
 simply ask for a valid username/password combination for that share in
 order
 to try and access it's content.

The machines have a valid machine account, and i have thought of this
possibility too and re-joined them in the domain. When accessing a share
for which he is authorised there is no problem and no box show up on the
client. Just when he tries to access a non-authorised share.

Might it have something to do with the fact that the user is in more then
one domaingroup? for example group users and group employees?

ps i never had this problem with samba 2.2 using smbpasswd as backend.

 Maybe it would be best not to show the share at all except for valid
 users.
 Something like:
 --begin--
  [example]
   comment = example
   path = /example
   create mask = 0760
   browseable = no
   valid users = @allowedusers2
   read only = No
   wrtie list = @allowedusers2
 --end

 This way you won't have to worry about message boxes and stuff like that.
 If
 the user is not in the valid list, the share shouldn't even show up.

 Hope it helps.

 Cheers,
 David

 El Martes, 5 de Julio de 2005 10:14, J. van Santen escribió:
 Hi,

 I got a problem with accessing some share's on my samba PDC (3.0.14)
 When a user tyr to access a share for which he is not authorised a box
 show up to suplly a name and password to access the share.
 Why doesnt the user get a box with 'access denied'?
 When u supply a username (DOMAINNAME\USERNAME) and password which is
 authorised for the share u get the message: 'SERVERNAME\SHARENAME access
 denied. the credential supplied conflict with a existing set  of
 credentials'

 What could be the problem?
 Im using samba 3.0.14 with tdbsam as backend. security is set to user.
 an example of a share defined in smb.conf:
 [example]
  comment = example
  path = /example
  invalid users = user1
  read only = No

 I hope someone can give me the answer

 Joshua




-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba share problem accessing from w2k client

2005-07-05 Thread J. van Santen
Hi,

I got a problem with accessing some share's on my samba PDC (3.0.14)
When a user tyr to access a share for which he is not authorised a box
show up to suplly a name and password to access the share.
Why doesnt the user get a box with 'access denied'?
When u supply a username (DOMAINNAME\USERNAME) and password which is
authorised for the share u get the message: 'SERVERNAME\SHARENAME access
denied. the credential supplied conflict with a existing set  of
credentials'

What could be the problem?
Im using samba 3.0.14 with tdbsam as backend. security is set to user.
an example of a share defined in smb.conf:
[example]
comment = example
path = /example
invalid users = user1
read only = No

I hope someone can give me the answer

Joshua

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share query

2005-06-14 Thread James Briar

Hello Mark, I've now got a good fix for my problem (after hours of trial and
error). I coded the following in my smb.conf file :-

[global]
...
hosts allow =

oplocks = Yes

security = share

[ts]

comment = Tech support directory

path = /information

guest ok = yes

guest only = yes

browsable = no

read only = yes

force user = %U   

I created a Unix user with the same name as my network login as well as
creating the user in the smbpasswd file.  I can now map a drive to the ts
share without being prompted for a password, if another network user tries
to map a drive to the share and they have not been created as a Unix/Samba
user they get an error. This is just what i want. If i've only got say Samba
users user1, user2 and user3 set up on the Unix side then only these can map
a drive without being prompted for a password.



^**^
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
[EMAIL PROTECTED]
http://www.merton.gov.uk
**

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share query

2005-06-14 Thread James Briar

Hello Dominic, thanks for your reply, I've now got a good fix for my problem
(after hours of trial and error). I coded the following in my smb.conf file
:-

[global]
...
hosts allow =

oplocks = Yes

security = share

[ts]

comment = Tech support directory

path = /information

guest ok = yes

guest only = yes

browsable = no

read only = yes

force user = %U   

I created a Unix user with the same name as my network login as well as
creating the user in the smbpasswd file.  I can now map a drive to the ts
share without being prompted for a password, if another network user tries
to map a drive to the share and they have not been created as a Unix/Samba
user they get an error. This is just what i want. If i've only got say Samba
users user1, user2 and user3 set up on the Unix side then only these can map
a drive without being prompted for a password. I set browsable = no just for
extra security. 


^**^
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
[EMAIL PROTECTED]
http://www.merton.gov.uk
**

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba share query

2005-06-13 Thread Mark Sarria
Reason I choose this method is many of my users are members of two groups,
for example art students. They are members of the student group and the
graphic arts group. Students only get 50mb space to store their work on our
servers, but a graphic arts student gets 500mb on a shared directory that is
mapped to them at logon. I am able to add a supplementary group id to each
art student and allow them R,W,E access to the share, just by using 

Force group = graphicarts

--mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Mark Sarria
Sent: Sunday, June 12, 2005 7:40 PM
To: James Briar; samba@lists.samba.org
Subject: Re: [Samba] Samba share query

force user = userone, usertwo,userthree

or you can do it by groups

force groups = groupone,grouptwo

--mark

- Original Message - 
From: James Briar [EMAIL PROTECTED]
To: samba@lists.samba.org
Sent: Sunday, June 12, 2005 11:19 AM
Subject: [Samba] Samba share query



 Hello,
 I've coded the following in our smb.conf file (security = share coded in 
 the
 [global] section) and this works fine where users can access the share
 without a password :-

 [ts]

comment = Tech support directory

path = /information

guest only = Yes

guest ok = Yes

guest account = nobody

writable = no

browsable = no

 Is it possible somehow to restrict access to this share to say three users
 only (say tom, dick and harry) but still allowing the three users to logon
 without a password being prompted for? The above share works fine but i
 don't want everyone to access it,  say just three certain users.

 I'm running Samba versions  3.0.14a and 2.0.5.a  both on Sun Solaris8 Unix
 systems.

 Thanks.


 ^**^
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 [EMAIL PROTECTED]
 http://www.merton.gov.uk
 **

 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share query

2005-06-12 Thread James Briar

Hello,
I've coded the following in our smb.conf file (security = share coded in the
[global] section) and this works fine where users can access the share
without a password :-

[ts]

comment = Tech support directory

path = /information

guest only = Yes

guest ok = Yes

guest account = nobody

writable = no

browsable = no 

Is it possible somehow to restrict access to this share to say three users
only (say tom, dick and harry) but still allowing the three users to logon
without a password being prompted for? The above share works fine but i
don't want everyone to access it,  say just three certain users.

I'm running Samba versions  3.0.14a and 2.0.5.a  both on Sun Solaris8 Unix
systems.  

Thanks.  


^**^
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
[EMAIL PROTECTED]
http://www.merton.gov.uk
**

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba share query

2005-06-12 Thread Mark Sarria

force user = userone, usertwo,userthree

or you can do it by groups

force groups = groupone,grouptwo

--mark

- Original Message - 
From: James Briar [EMAIL PROTECTED]

To: samba@lists.samba.org
Sent: Sunday, June 12, 2005 11:19 AM
Subject: [Samba] Samba share query




Hello,
I've coded the following in our smb.conf file (security = share coded in 
the

[global] section) and this works fine where users can access the share
without a password :-

[ts]

   comment = Tech support directory

   path = /information

   guest only = Yes

   guest ok = Yes

   guest account = nobody

   writable = no

   browsable = no

Is it possible somehow to restrict access to this share to say three users
only (say tom, dick and harry) but still allowing the three users to logon
without a password being prompted for? The above share works fine but i
don't want everyone to access it,  say just three certain users.

I'm running Samba versions  3.0.14a and 2.0.5.a  both on Sun Solaris8 Unix
systems.

Thanks.


^**^
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
[EMAIL PROTECTED]
http://www.merton.gov.uk
**

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba 


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba share query

2005-06-12 Thread Dominic Iadicicco
If you put the three users in a group and give that group what ever
unix premissions you want, set the other premission to non, leave what
you have in the smb.conf file, that should do it.  You should not have
to map the unix group to a windows group for read write exec stuff.  I
hope that helps.

On 6/12/05, James Briar [EMAIL PROTECTED] wrote:
 
 Hello,
 I've coded the following in our smb.conf file (security = share coded in the
 [global] section) and this works fine where users can access the share
 without a password :-
 
 [ts]
 
comment = Tech support directory
 
path = /information
 
guest only = Yes
 
guest ok = Yes
 
guest account = nobody
 
writable = no
 
browsable = no
 
 Is it possible somehow to restrict access to this share to say three users
 only (say tom, dick and harry) but still allowing the three users to logon
 without a password being prompted for? The above share works fine but i
 don't want everyone to access it,  say just three certain users.
 
 I'm running Samba versions  3.0.14a and 2.0.5.a  both on Sun Solaris8 Unix
 systems.
 
 Thanks.
 
 
 ^**^
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 [EMAIL PROTECTED]
 http://www.merton.gov.uk
 **
 
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Share Refresh Problem

2005-05-31 Thread David Petzel
Hello,
   I have search up and down about this problem and I have since a lot of 
posts of people who have had the problem but no solutions so I am posting 
here hoping that someone can help me out.

Here is the scenario. I have Samba Version 3.010 running on Ubuntu 5.04. 
Everything is working very well with the exception of one item.

I have created a shared and when I create a new folder I have to manually do 
a refresh before I can rename the folder. If I perform this same operation 
in a home share I do NOT have the problem. When creating the folder in the 
home share it asks to provide a name for the folder as it is created. I have 
double checked my smb.conf and I can not find anything to explain this. Does 
anyone have any insight to this problem? 



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share breaks msi-install process

2005-04-05 Thread max . puech
Hello,

I have the same problem when the client is under Windows 98SE. With XP Pro 
SP2 it's OK.
The samba version is samba-3.0.7-2.FC2.

Here is the defintion of the share:
[install]
path=/mnt/install
guest ok=yes
browsable=no
writeable=no
write [EMAIL PROTECTED]

The error is:
Windows Installer
Impossible d'ouvrir ce package d'installation. Vérifiez qu'il existe et 
que vous êtes autorisé à y accéder, ou vérifiez auprès de votre revendeur 
d'applications que ce package de Windows Installer est valide.


Best regards

-- 
Max PUECH
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba share

2005-02-27 Thread spiv007
I have a Windows 2k dc running in pre 2k mode which i guess that means
it can talk nt4 style.  All my user ID are in that w2k domain, and if
I have a samba box up and im sharing a folder from it how can I add
group rights from the w2k side to it?

Do I need to do a group map or somthing?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share not working

2005-02-05 Thread rmgsantos
Hi,

I'm following the configuration examples and I can't see a samba share from
my XP box can you help me?

My smb.conf goes like this

[global]
workgroup = MIDEARTH
netbios name = HOBBIT
security = share

[data]
comment = Data
path = /export
read only = Yes
guest only = Yes


Regards
Rui


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share mapped to a virtual directory via UNC within IIS doesn't work

2005-02-03 Thread K J
I have a Samba share that I've created from a Linux box.  I've mapped
this sucessfully to drive in Windows 2003 server.  I'm also able to
read/write to it under Windows explorer just fine.  It's using user
security so I have to enter the username and password defined in the
Linux box when connecting to this share.

I then mapped a virtual directory under IIS to the UNC name of this
Samba network share (\\MachineName\ShareFolder) and saved the Samba
connection login.

This is when the problems began.  Now whenever I goto my browser and
type the url to that folder I get an error 500.  The IIS log file
shows this:

2005-02-03 14:29:11 192.168.1.150 GET /test/test.jpg - 81 -
192.168.1.150 
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322)
- 500 16 1326 15

/test/ is the virtual directory that I've mapped the Samba share to.

Is this caused by a permissions problem?  I don't see any other reason
for it.  I'm not accessing a script, just a static file.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share for ADS users

2005-01-12 Thread Rashaad S. Hyndman
Hi all,

As per suggested i added a windbind seperator comment in my samba.conf file
and followed that up with adminin user=Domain+Some AD user.  I expected
this to give that AD user full control over the share (read , write ,
execute) however, if that user tries to create a file in that direcotry he
still gets accessed is denied.  Right now i have the share owned by a unix
user (because i dont know of any why to have it owned by an AD user) non
root with 755 as the permissions on all the folders.  How do i go about
giving and ADS user the ability to create files and folders in that
directory without changing the rights to 777 for all files and folders?

Thanks,
R.


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba share breaks msi-install process

2005-01-05 Thread Jeremy Allison
On Mon, Jan 03, 2005 at 05:00:07PM +0100, Samba list wrote:
 Hi,
 
 I need advise by someone with knowledge about the inner workings of
 MS Installer to explain the behavioural difference between using a
 Samba share and a native Windows share.
 
 I'm trying to install a (commercial) package on multiple
 Windows machines. This package shares several database-like files
 in a central directory on a central share. Using a share on a Windows
 XP-machine works OK leaving the central files intact, using a Samba share
 breaks things.
 
 First I install the package on the first machine (say pcA).
 The central directory on the share is created and the files are installed.
 The package now works excellent.
 
 Then I install the package on the second machine (say pcB).
 The central share is found, but on Samba the important database file is
 reinitialised, deleting all the information put into it using pcA.
 
 The shares are mapped using the same account name and password (only
 one PC needs to be active at the same time).
 I have tried both Samba Version 2.0.5a, and Version 3.0.3pre2-2.pre2.
 Both behave exactly alike.

Can you retry this with the recently release 3.0.11pre release - if you
still get the problem we'll follow up.

Thanks,

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share breaks msi-install process

2005-01-03 Thread Samba list
Hi,

I need advise by someone with knowledge about the inner workings of
MS Installer to explain the behavioural difference between using a
Samba share and a native Windows share.

I'm trying to install a (commercial) package on multiple
Windows machines. This package shares several database-like files
in a central directory on a central share. Using a share on a Windows
XP-machine works OK leaving the central files intact, using a Samba share
breaks things.

First I install the package on the first machine (say pcA).
The central directory on the share is created and the files are installed.
The package now works excellent.

Then I install the package on the second machine (say pcB).
The central share is found, but on Samba the important database file is
reinitialised, deleting all the information put into it using pcA.

The shares are mapped using the same account name and password (only
one PC needs to be active at the same time).
I have tried both Samba Version 2.0.5a, and Version 3.0.3pre2-2.pre2.
Both behave exactly alike.

On version 3 I have experimented with serveral options the last
setting I tried is:

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   browseable = yes
   public = yes
   map hidden = yes 
   dos filetimes = yes
   dos filetime resolution = yes
   fstype = FAT
   fake directory create times = yes
   ea support = no

My feeling is that somehow the file/directory times are important
(perhaps the file creation time plays an essential role).
I have sniffed the network with ethereal: the important file is
copied to a .rbf file. That (roll back?) file isn't touched and 
later on deleted.

The software company ensures me that when using any kind of Windows share
the software works as expected, only with Samba it fails (other customers
have identical problems). They too would like the problem resolved.
They also checked their .msi file: the central database file is marked
as very valuable, and shouldn't be destroyed.

It is the MSI install process that rewrites the central files.
Does anyone know how MSI checks its target files and whether samba
can be tweaked either by changing the configuration file of by
adding new functionality to Samba to make it work?

Thanks a lot,

Yves Fonk
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share problem

2004-12-28 Thread Anandh G
I had setup a Samba 3.0 PDC on Fedora 2. I have 2
shares like given below. The 2 shares are working
fine, allowing only the users of the corresponding
group to access the respective shares.

[ab]
comment = Lotus Group Folder
path = /home/ab
valid users = @a
browseable = yes
readonly = no
[cd]
comment = Creative Group Folder
path = /home/cd
valid users = @b
browseable = yes
readonly = no

If a user belong to group 'a' logs into the windows PC
he can access the folder ab but he can also see the
shared cd folder. If he tries to access this cd
folder he is asked with username and pasword. If he
gives the correct username/password of a broup 'b'
user he is not able to get into the cd folder.

How can I make samba to allow users belonging to group
'a' to access cd folder when he gives the userame
password of a group 'b' user.



=
Regards,
AnandhG



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba share to access windows folders in linux.

2004-11-16 Thread Divya B Sridhar
Hi,
I am trying to access folders on a windows system on a linux system using
the command,
 
smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev' -o
username=abcd/domain,uid=abcd,gid=abcd
 
This prompts for a password and I give the correct domain password here. It
gives me the error:
21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an
invalid share name)
 
However, if I try to access some other folder other than the folders under
CCViews(highlighted above) on the same machine, I am able to make the samba
share.
(Note that CCViews is a folder having clearcase views of different people)
 
Any help is greatly appreciated.
 
Thanks,
Divya.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba share to access windows folders in linux.

2004-11-16 Thread Divya B Sridhar
Hi,

I just now got how to do it. It looks like we have to specify only until
CCViews rather than specifying CCViews/abcd/abcd_Linux_dev in the command
below. However, I am not sure how we can access until abcd_Linux_dev.

smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev' -o
username=abcd/domain,uid=abcd,gid=abcd

The command gives the error:
21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an
invalid share name)
if a complete path is given. Anyone knows how to do it? Because, I do not
want to see all the folders under CCViews, rather I want to see only those
under abcd_Linux_dev.

Thanks,
Divya.


-Original Message-
From: Eric Lester [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 11:48 AM
To: Divya B Sridhar
Subject: Re: [Samba] Samba share to access windows folders in linux.


Maybe this is stupid, but I'll take a shot at it -- have you tried without
the /domain?

EL


On Wed, 17 Nov 2004 11:03:45 +0530, Divya B Sridhar [EMAIL PROTECTED]
wrote:
 Hi,
 I am trying to access folders on a windows system on a linux system 
 using the command,
 
 smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev' 
 -o username=abcd/domain,uid=abcd,gid=abcd
 
 This prompts for a password and I give the correct domain password 
 here. It gives me the error:
 21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an 
 invalid share name)
 
 However, if I try to access some other folder other than the folders 
 under CCViews(highlighted above) on the same machine, I am able to 
 make the samba share. (Note that CCViews is a folder having clearcase 
 views of different people)
 
 Any help is greatly appreciated.
 
 Thanks,
 Divya.
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba
 


-- 
 Proof by Scope: The proof of this theorem is beyond the
scope of this book.
-- Jonathan Young, PhD.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba share to access windows folders in linux.

2004-11-16 Thread Steve Simeonidis
Are you sure abcd_Linux_dev is a share?

Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
n Behalf Of Divya B Sridhar
Sent: Wednesday, 17 November 2004 5:25 PM
To: 'Eric Lester'; [EMAIL PROTECTED]
Subject: RE: [Samba] Samba share to access windows folders in linux.


Hi,

I just now got how to do it. It looks like we have to specify only until
CCViews rather than specifying CCViews/abcd/abcd_Linux_dev in the command
below. However, I am not sure how we can access until abcd_Linux_dev.

smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev' -o
username=abcd/domain,uid=abcd,gid=abcd

The command gives the error:
21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an
invalid share name)
if a complete path is given. Anyone knows how to do it? Because, I do not
want to see all the folders under CCViews, rather I want to see only those
under abcd_Linux_dev.

Thanks,
Divya.


-Original Message-
From: Eric Lester [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 11:48 AM
To: Divya B Sridhar
Subject: Re: [Samba] Samba share to access windows folders in linux.


Maybe this is stupid, but I'll take a shot at it -- have you tried without
the /domain?

EL


On Wed, 17 Nov 2004 11:03:45 +0530, Divya B Sridhar [EMAIL PROTECTED]
wrote:
 Hi,
 I am trying to access folders on a windows system on a linux system 
 using the command,
 
 smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev' 
 -o username=abcd/domain,uid=abcd,gid=abcd
 
 This prompts for a password and I give the correct domain password 
 here. It gives me the error:
 21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an 
 invalid share name)
 
 However, if I try to access some other folder other than the folders 
 under CCViews(highlighted above) on the same machine, I am able to 
 make the samba share. (Note that CCViews is a folder having clearcase 
 views of different people)
 
 Any help is greatly appreciated.
 
 Thanks,
 Divya.
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba
 


-- 
 Proof by Scope: The proof of this theorem is beyond the
scope of this book.
-- Jonathan Young, PhD.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba share to access windows folders in linux.

2004-11-16 Thread Divya B Sridhar
Yes Steve. 
All folders until abcd_Linux_dev are shared. But pls note that the
subsequent folders inside this folder are not shared. But that should not
matter I guess.
Any other possible reason?

Thanks,
Divya.

-Original Message-
From: Steve Simeonidis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 12:16 PM
To: Divya B Sridhar; Eric Lester; [EMAIL PROTECTED]
Subject: RE: [Samba] Samba share to access windows folders in linux.


Are you sure abcd_Linux_dev is a share?

Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
n Behalf Of Divya B Sridhar
Sent: Wednesday, 17 November 2004 5:25 PM
To: 'Eric Lester'; [EMAIL PROTECTED]
Subject: RE: [Samba] Samba share to access windows folders in linux.


Hi,

I just now got how to do it. It looks like we have to specify only until
CCViews rather than specifying CCViews/abcd/abcd_Linux_dev in the command
below. However, I am not sure how we can access until abcd_Linux_dev.

smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev' -o
username=abcd/domain,uid=abcd,gid=abcd

The command gives the error:
21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an
invalid share name) if a complete path is given. Anyone knows how to do it?
Because, I do not want to see all the folders under CCViews, rather I want
to see only those under abcd_Linux_dev.

Thanks,
Divya.


-Original Message-
From: Eric Lester [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 11:48 AM
To: Divya B Sridhar
Subject: Re: [Samba] Samba share to access windows folders in linux.


Maybe this is stupid, but I'll take a shot at it -- have you tried without
the /domain?

EL


On Wed, 17 Nov 2004 11:03:45 +0530, Divya B Sridhar [EMAIL PROTECTED]
wrote:
 Hi,
 I am trying to access folders on a windows system on a linux system
 using the command,
 
 smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev'
 -o username=abcd/domain,uid=abcd,gid=abcd
 
 This prompts for a password and I give the correct domain password
 here. It gives me the error:
 21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an 
 invalid share name)
 
 However, if I try to access some other folder other than the folders
 under CCViews(highlighted above) on the same machine, I am able to 
 make the samba share. (Note that CCViews is a folder having clearcase 
 views of different people)
 
 Any help is greatly appreciated.
 
 Thanks,
 Divya.
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba
 


-- 
 Proof by Scope: The proof of this theorem is beyond the
scope of this book.
-- Jonathan Young, PhD.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba share to access windows folders in linux.

2004-11-16 Thread Steve Simeonidis
As far as I know you can not mount a folder/dir that
is not shared.

In this case create a new share for abcd_Linux_dev and mount it
as

smbmount '//a.b.c.d/abcd_Linux_dev' '/root/pqrs/LinuxDev' -o
username=abcd/domain,uid=abcd,gid=abcd

may be I'm wrong :-)

-Original Message-
From: Divya B Sridhar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 17 November 2004 5:48 PM
To: Steve Simeonidis; 'Eric Lester'; [EMAIL PROTECTED]
Subject: RE: [Samba] Samba share to access windows folders in linux.


Yes Steve. 
All folders until abcd_Linux_dev are shared. But pls note that the
subsequent folders inside this folder are not shared. But that should not
matter I guess.
Any other possible reason?

Thanks,
Divya.

-Original Message-
From: Steve Simeonidis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 12:16 PM
To: Divya B Sridhar; Eric Lester; [EMAIL PROTECTED]
Subject: RE: [Samba] Samba share to access windows folders in linux.


Are you sure abcd_Linux_dev is a share?

Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
n Behalf Of Divya B Sridhar
Sent: Wednesday, 17 November 2004 5:25 PM
To: 'Eric Lester'; [EMAIL PROTECTED]
Subject: RE: [Samba] Samba share to access windows folders in linux.


Hi,

I just now got how to do it. It looks like we have to specify only until
CCViews rather than specifying CCViews/abcd/abcd_Linux_dev in the command
below. However, I am not sure how we can access until abcd_Linux_dev.

smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev' -o
username=abcd/domain,uid=abcd,gid=abcd

The command gives the error:
21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an
invalid share name) if a complete path is given. Anyone knows how to do it?
Because, I do not want to see all the folders under CCViews, rather I want
to see only those under abcd_Linux_dev.

Thanks,
Divya.


-Original Message-
From: Eric Lester [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 11:48 AM
To: Divya B Sridhar
Subject: Re: [Samba] Samba share to access windows folders in linux.


Maybe this is stupid, but I'll take a shot at it -- have you tried without
the /domain?

EL


On Wed, 17 Nov 2004 11:03:45 +0530, Divya B Sridhar [EMAIL PROTECTED]
wrote:
 Hi,
 I am trying to access folders on a windows system on a linux system
 using the command,
 
 smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev'
 -o username=abcd/domain,uid=abcd,gid=abcd
 
 This prompts for a password and I give the correct domain password
 here. It gives me the error:
 21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an 
 invalid share name)
 
 However, if I try to access some other folder other than the folders
 under CCViews(highlighted above) on the same machine, I am able to 
 make the samba share. (Note that CCViews is a folder having clearcase 
 views of different people)
 
 Any help is greatly appreciated.
 
 Thanks,
 Divya.
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba
 


-- 
 Proof by Scope: The proof of this theorem is beyond the
scope of this book.
-- Jonathan Young, PhD.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba + Share Quota's

2004-09-25 Thread Ilia Chipitsine
Hi Everybody,
As far as I can see nobody answered my question.
Is there anobody who has an idea how to solve this problem? Or do I need to
send my question to a different samba mailinglist and not to
[EMAIL PROTECTED]
Thank you very much,
Bart Hendrix
NLcom
- Original Message -
From: Bart Hendrix [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 20, 2004 3:30 PM
Subject: [Samba] Samba + Share Quota's
Hi Samba users.
I have the following problem and I hope somebody can help me:
I installed Samba on a White Box linux machine and used LDAP for
authentication.
I created a directory /work/shares. In /work/shares are all share
directories created.
The problem I'm having now is that the total capacity of each share is the
same because they are on the same partition.
(So /work/shares/test and /work/shares/software both used 80 GB from a total
of 120 GB free space, but /test used 20 GB and /software 60 GB)
Is it possible to configure the free space size with smbcquota's?
no.
smbcquotas does support quota management for root NTFS shares,
for instance, if you have w2k server and both C: and C:\Some_folder are 
shared, You can manage quotas on C:, but You cannot manage quotas with 
smbcquotas on C:\Some_folder, just because quota doesn't apply 
per-share, on most filesystems (UFS, NTFS, EXT3) quota is per 
filesystem.

split your drive onto several filesystems and there's no other way to get 
quota support per share

I tried this but I couldn't configure it because I dont know the values of
soft/hard limit. (smbcquotas //fileserver/test -S
FSQLIM:softlimit/hardlimit)
Is smbcquota's the right program or is there a different solution?
Thank you very much
Bart Hendrix
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Share Help Needed

2004-09-21 Thread Ben
Hi,
I have the following directory shared for the user pcbadmin. He/she 
can mount and read/write without any difficulty:

[pcbdata]
   comment = PCB Design Files
   path = /home/pcbadmin/pcbdata
   valid users = pcbadmin
   public = no
   writable = yes
Question: How can I make the same directory only readable by the rest of 
the users ?

TIA, Ben
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba + Share Quota's

2004-09-20 Thread Bart Hendrix
Hi Samba users. 

I have the following problem and I hope somebody can help me: 

I installed Samba on a White Box linux machine and used LDAP for authentication. 
I created a directory /work/shares. In /work/shares are all share directories created. 

The problem I'm having now is that the total capacity of each share is the same 
because they are on the same partition. 
(So /work/shares/test and /work/shares/software both used 80 GB from a total of 120 GB 
free space, but /test used 20 GB and /software 60 GB) 

Is it possible to configure the free space size with smbcquota's? 

I tried this but I couldn't configure it because I dont know the values of soft/hard 
limit. (smbcquotas //fileserver/test -S FSQLIM:softlimit/hardlimit)

Is smbcquota's the right program or is there a different solution? 

Thank you very much

Bart Hendrix
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] samba share of mounted Novell volume is empty

2004-05-22 Thread Bernd Martin
Hi,
I am using samba as logon server. I have created some shares using
SWAT. I am using scripts for loging on to Windows clients and
connecting drive letters . Everything works fine so far. Now I mounted
as root our Novell fileserver (4.x with IPX). Finally it worked! I can
see the Novell volumes and their files on my Linux machine under the
directory to which I mounted them. I can see them as root but also
when I log in as normal user. Now I created again a share for this
novell-directory. I assign a drive letter via login-script. When I log in
on my windows-client I see the novell-server directory under the
assigned drive letter, but it is empty! I can se no files or data at all.
What am I doing wrong?
Thanks for any hints!
Bernd Martin


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.679 / Virus Database: 441 - Release Date: 07.05.2004
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

[Samba] samba share trough dos

2004-02-19 Thread António Vasconcelos
Hello!

I'm having trouble to access a Samba share trough ms-dos.
I'm using NU2 network boot disk, wich loads ndis drivers ms-dos prompt. 
So that after that I can do a net use to a share and load an disk image 
with Ghost.
The problem is that i passed from a windows to unix - samba share and 
i'm not capable of connecting to it.
Mapping the share trough Windows XP is no problem.

Can any one tell me if the problem is from th samba or, is it necessary 
to have some special software to connect??

Thank you all
Best regards
António Vasconcelos
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba share trough dos

2004-02-19 Thread Gémes Géza
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
António Vasconcelos írta:
| Hello!
|
| I'm having trouble to access a Samba share trough ms-dos.
| I'm using NU2 network boot disk, wich loads ndis drivers ms-dos prompt.
| So that after that I can do a net use to a share and load an disk image
| with Ghost.
| The problem is that i passed from a windows to unix - samba share and
| i'm not capable of connecting to it.
| Mapping the share trough Windows XP is no problem.
|
| Can any one tell me if the problem is from th samba or, is it necessary
| to have some special software to connect??
|
| Thank you all
| Best regards
|
| António Vasconcelos
To connect from DOS to any CIFS server having only NetBIOS over TCP/IP,
like Samba, you need the followings:
- -Network card driver for DOS
- -TCP/IP stack for your DOS box (I think you lack this)
- -SMB Client (Most shiped for DOS will work only over raw NetBEUI :-( )
As I don't know (yet) about any true CIFS client for DOS, you will need
to allow access to ports 137-139 of your CIFS server (enabled by default
for Samba)
Cheers

Geza
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFANRKc/PxuIn+i1pIRAk2wAJ4nVW+fF/EVK8LfiukTws37q+d3rgCfXHpx
ENq3f1jqx5N0j4fSiy9C7no=
=cfQW
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


  1   2   >