Thanks to all who have helped so far. I am still not out of the woods.
The strangeness continues....
I can now create/save a file from either the Linux box or a Windows box to
the Samba-Shared resource, and get the permissions to be -rw-rw-r--.
Half of the battle is won. All users can play with all files in the
common (shared) directory and its subdirectories.
The other half of the battle still looms.
I can now created/save a file from a Windows box to the NFS shared
directory on the Linux box, and the permissions are -rwx-rw-r-- the owner is
listed as the Windows machine's user.
UNFORTUNATELY, a file created/saved from the Linux box the NFS share
resides upon has permissions of -rw-r--r--. I want them to default to at
least -rw-rw-r-- .
At the end of this communication are copies of the following files from my
Xandros (Debian) version of Linux: etc/group , etc/samba/smb.conf , &
etc/profile
I have a samba share that resides on a WinXPpro box, FAT32 partition. I
did not put it on an NTFS partition because I have read in a couple of
places that Samba and NTFS do not play well together (yet).
I have an NFS share that resides in /home/morgan/Public_Xan01
Basically,
I have set umask in etc/profile to 002
I have set create mask and directory mask in etc/samba/smb.conf to
0775 (each)
I tried setting umask in home/morgan/.bashrc to 002 (it was 022) but
it slowed my system terribly (clock lost four hours between 11pm last night
and 6am this morning!) and programs slow and jerky; AND it did not solve
the -rw-r--r-- situation upon file Create/Save.
I do an orderly shutdown and restart computer after every change. I make
changes one at a time.
Every user is a member of the group that has directory/file access to the
shares.
Shared directory permissions are set to -rw-rw-rw-
My testing procedure is as follows:
After restarting the Linux box...
On the Linux box I sign in as the normal user (not root)
I then open a text editor, create a file, save the file to the Samba
share, then Save AS the same file to the NFS share, then close the text
editor.
I then open Open Office Word Processor and repeat the above process of
file create/save using a slightly different filename, to each of the target
shares.
On a Windows box I sign in as a normal user (not administrator)
I then open a text editor (notepad) and create a file, save it to each
share, then exit program.
I then repeat the process using MS Word.
This means I have created a total of 8 files, using 4 different programs,
on 2 different machines.
I then go back to the Linux box, open a file manager and look at the
permissions on the 4 files in each of the 2 shares.
Tom 20 FEB 03
Thomas E. Stirewalt Jr.
voice= 504-581-1974 [ans.mach]
email= TomS@ComputerBrain.net
+ + + + + + + + + +
FILE CONTENTS FOLLOW - - - - - -
+ + + + + + + + + + +
etc/profile:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
#
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
export PATH PS1
umask 002
+ + + + + + + + + + +
etc/samba/smb.conf
#======================= Global Settings =======================
[global]
workgroup=WORKGROUP
server string=%h server (Samba %v)
load printers=no
printcap name=cups
printing=cups
print command=lp -d %p %s; rm %s
invalid users=root
log file=/var/log/samba/log.%m
max log size=1000
syslog=0
security=SHARE
encrypt passwords=yes
socket options=TCP_NODELAY
dns proxy=no
passwd program=/usr/bin/passwd %u
passwd chat=*Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
obey pam restrictions=yes
preserve case=yes
case sensitive=no
short preserve case=yes
os level=20
;winbind separator
;wins server
name resolve order=lmhosts wins bcast host
;template homedir
;winbind gid
;template shell
;winbind uid
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
[Public_Xan01]
public=yes
browseable=yes
path=/home/morgan/Public_Xan01
writeable=yes
write list=morgan
max connections=0
available=yes
read only=no
directory mask=0775
create mask=0775
+ + + + + + + + + + +
etc/group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:lp
mail:x:8:
news:x:9:
uucp:x:10:
proxy:x:13:
kmem:x:15:
dialout:x:20:morgan,tstirewalt,hannibal
fax:x:21:
voice:x:22:
cdrom:x:24:morgan,tstirewalt,hannibal
floppy:x:25:morgan,tstirewalt,hannibal
tape:x:26:
sudo:x:27:
audio:x:29:morgan,tstirewalt,hannibal
dip:x:30:
majordom:x:31:majordom
postgres:x:32:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:morgan,tstirewalt,hannibal
staff:x:50:
games:x:60:
users:x:100:morgan,tstirewalt,hannibal
nogroup:x:65534:
lpadmin:x:101:root,morgan,tstirewalt,hannibal
mysql:x:102:
syslog:x:103:
morgan:x:1000:hannibal,morgan,root,tstirewalt
tstirewalt:x:1001:hannibal,morgan,root,tstirewalt
hannibal:x:1002:hannibal,morgan,root,tstirewalt
+ + + + + + + +
END - - - END - - - END
___________________
Nolug mailing list
nolug@nolug.org
Received on 02/20/03
This archive was generated by hypermail 2.2.0 : 12/19/08 EST