What are modes 0660 and 0750? And from one of your later
emails (Samba Share - Access Denied) what does "chmod g+s /some directory do? Thanks again, Jerome
On Thursday 06 May 2004 03:27 am, Louis Richards wrote: <SNIP> I did as you suggested and also I added myself as a user using smbpasswd and it worked. Thank you Louis! I checked man chmod but couldn't find out what the modes you suggested I use mean. What are the create mask and
The easiest way to think about it is that the four numbers of a mode
represent -- directory -- owner -- group -- world -- permissions. The
directory bit just signifies whether the filename is a file (0) or a
directory (1). The owner, group and world permissions are each defined by
the read, write and execute bits. (ie. dwrxwrxwrx) The mode numbers are just
short hand for setting the binary attributes of the read-write-execute
permissions you want. For the owner, group and world bits the numbers mean
the following:
# binary wrx permission
1 001 (--x) execute only
2 010 (-w-) write only
3 011 (-wx) write and execute
4 100 (r--) read only
5 101 (r-x) read and execute
6 110 (rw-) read and write
7 111 (rwx) read, write and execute
So chmod 0660 filename sets the file permission of filename to
-rw-rw----
That means owner has read/write and group has read/write and world has no
access
Similarly chmod 0750 filename sets the file permission of filename to
-rwx-r-x---
Which means owner has read/write/execute, group has read/execute and world
has no access.
If your not affecting the directory bit, you can omit the leading 0. So
chmod 660 is the same as chmod 0660.
Hope that helps...... Somebody add this to a man page somewhere........
--
David C. Rankin, J.D., P.E.
RANKIN * BERTIN, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax
www.rankin-bertin.com
--
----- Original Message -----
From: "Jerome Lyles"
mask functions? What are modes 0660 and 0750? And from one of your later emails (Samba Share - Access Denied) what does "chmod g+s /some directory do? Thanks again, Jerome
You have changed this to make the home directory browsable. When a client first browses a server, it is done as nobody. You have not logged on to the server yet. The server has no way to tell who you are. You also are allowing guest access. Try the following:
[homes] comment = Home Directories valid users = %S writable = Yes create mask = 0660 directory mask = 0770 browseable = No
--
Louis D. Richards LDR Interactive Technologies
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com