Running Samba 3.0.14a under kernal 2.6.11-1.1369 (Fedora core 4) I'm trying to set up a file server for use with XP network. I have an interesting problem that came to light when I had difficulty connecting from Windows. I can set up a shared directory exactly as detailed in the troubleshooting guide (setting up /tmp as tmp) and can connect from my account on the server. If I try to set up a share under /home I get "NT_STATUS_NETWORK_ACCESS_DENIED". Same if I try and set up a share to a directory called /storage which is a mount point for a spare drive. It isn't a typo in smb.conf, because copying the working /tmp text and simply changing the target directory doesn't work either. Interestingly (and here's where things get wierd), if I set "/" to be a samba share and connect from my account, listing the files in the drive omits /home and /storage. If I create a new directory as root in "/" I can successfully set it up in samba. There seems to be no issue with permissions (I tried setting /storage to 777). All directories are owned by root from group root. I assume something trivial is the cause but am at a loss. Rgds Bill _________________________________________________________________ Sell your car for $9 on carpoint.com.au http://www.carpoint.com.au/sellyourcar
Running Samba 3.0.14a under kernal 2.6.11-1.1369 (Fedora core 4) I'm trying to set up a file server for use with XP network. I have an interesting problem that came to light when I had difficulty connecting from Windows. I can set up a shared directory exactly as detailed in the troubleshooting guide (setting up /tmp as tmp) and can connect from my account on the server. If I try to set up a share under /home I get "NT_STATUS_NETWORK_ACCESS_DENIED". Same if I try and set up a share to a directory called /storage which is a mount point for a spare drive. It isn't a typo in smb.conf, because copying the working /tmp text and simply changing the target directory doesn't work either. Interestingly (and here's where things get wierd), if I set "/" to be a samba share and connect from my account, listing the files in the drive omits /home and /storage. If I create a new directory as root in "/" I can successfully set it up in samba. There seems to be no issue with permissions (I tried setting /storage to 777). All directories are owned by root from group root. I assume something trivial is the cause but am at a loss. Rgds Bill
On Tue, 02 Aug 2005 21:31:35 +1000 Bill Measday <linux_test@measday.com> wrote:> What about permissions and owner of /data/bill? > > > > P. > > > > drwxrwxrwx 4 bill net_users 4096 Jul 31 07:45 bill > > It doesn't seem to be anything quite as trivial as permissions, but > then, who knows? >Well, log to this machine as linux user bill and try to create file and directory in /data/bill. If it will not work, check permissions of /data. If it will work, I cannot find simple answer why. P.
Well, could you check ... sorry I am not able describe it in English, I'll write it in Bash language :-)> ps -Af | grep... and check UID of selected processes. Regards, P. On Tue, 02 Aug 2005 22:24:34 +1000 Bill Measday <linux_test@measday.com> wrote:> And therein lies the problem - I've tried all these simple things and > the answer is eluding me (in other words, no problem creating directory > directly from bash) > > Rgds > > > Bill > > On Tue, 2005-08-02 at 14:12 +0200, Pavel V?vra wrote: > > On Tue, 02 Aug 2005 21:31:35 +1000 > > Bill Measday <linux_test@measday.com> wrote: > > > > > What about permissions and owner of /data/bill? > > > > > > > > P. > > > > > > > > > > drwxrwxrwx 4 bill net_users 4096 Jul 31 07:45 bill > > > > > > It doesn't seem to be anything quite as trivial as permissions, but > > > then, who knows? > > > > > > > Well, log to this machine as linux user bill and try to create file and directory in /data/bill. If it will not work, check permissions of /data. If it will work, I cannot find simple answer why. > > P. > >
check selinux... (FC4 has it by default!) #>getenforce... in case this returns 1... diable it... On 8/3/05, Bill Measday <linux_test@measday.com> wrote:> > I think the relevant processes are listed below Pavel. > > UID PID PPID C STIME TTY TIME CMD > root 6264 1 0 Aug02 ? 00:00:00 smbd -D > root 6265 6264 0 Aug02 ? 00:00:00 smbd -D > root 6267 1 0 Aug02 ? 00:00:03 nmbd -D > bill 12214 4916 0 07:00 pts/2 00:00:00 smbclient //host/test > -Ubill%deleted password > bill 12215 6264 0 07:00 ? 00:00:00 smbd -D > root 12216 6264 0 07:00 ? 00:00:00 smbd -D > 4776 0 07:01 pts/1 00:00:00 ps -Af > > > Rgds > > > Bill > > > On Tue, 2005-08-02 at 16:22 +0200, Pavel V?vra wrote: > > Well, could you check ... sorry I am not able describe it in English, > I'll write it in Bash language :-) > > > > > ps -Af | grep > > > > ... and check UID of selected processes. > > > > Regards, > > P. > > > > > > On Tue, 02 Aug 2005 22:24:34 +1000 > > Bill Measday < linux_test@measday.com> wrote: > > > > > And therein lies the problem - I've tried all these simple things and > > > the answer is eluding me (in other words, no problem creating > directory > > > directly from bash) > > > > > > Rgds > > > > > > > > > Bill > > > > > > On Tue, 2005-08-02 at 14:12 +0200, Pavel V?vra wrote: > > > > On Tue, 02 Aug 2005 21:31:35 +1000 > > > > Bill Measday < linux_test@measday.com> wrote: > > > > > > > > > What about permissions and owner of /data/bill? > > > > > > > > > > > > P. > > > > > > > > > > > > > > > > drwxrwxrwx 4 bill net_users 4096 Jul 31 07:45 bill > > > > > > > > > > It doesn't seem to be anything quite as trivial as permissions, > but > > > > > then, who knows? > > > > > > > > > > > > > Well, log to this machine as linux user bill and try to create file > and directory in /data/bill. If it will not work, check permissions of > /data. If it will work, I cannot find simple answer why. > > > > P. > > > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >-- Sanjay Upadhyay http://saneax.blogspot.com