LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2003, 03:09 AM   #1
gsmonk
Member
 
Registered: Nov 2002
Distribution: RedHat 9
Posts: 78

Rep: Reputation: 15
Question Samba Question?


I am just curious, regarding Samba. What are the differences between: "force directory mode" and "directory mode"? And "force create mode" and "create mode"? Don't they do the same thing, or is there something I'm missing?

Thanks

Greg
 
Old 07-20-2003, 05:02 AM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
see 'man smb.conf' (looking for 'create mask') for great explanation
 
Old 07-20-2003, 08:57 AM   #3
netboy_541
Member
 
Registered: Jul 2003
Location: Hamilton, OH
Distribution: Redhat 9, SuSE 10.1 & 10.2, Kubuntu
Posts: 173

Rep: Reputation: 30
i got a question --

I want to get my windows shares to mount upon bootup, but I add the entries to the fstab file and it freaks out cause samba doesn't load until after the fstab file is parsed.... another weird thing -- my windows server is 2k adv with active directory and I can't get the thing to let me mount the drive using smbmount with read/write access -- kinda defeats the purpose ... so if you have any Ideas -- let me know!


Thanks
 
Old 07-20-2003, 01:30 PM   #4
gsmonk
Member
 
Registered: Nov 2002
Distribution: RedHat 9
Posts: 78

Original Poster
Rep: Reputation: 15
Thank for the help. I am reading the man smb.conf. I have a couple of questions. When they say "bit-wise," what does this mean?

I am still having trouble discerning the difference between create mode and force create mode. To me, it seems that create mode (or create mask) calculates the dos mode to UNIX permissions based on the mode you selected, 2770. And force create mode sets the permissions entered (2770) regardless. Am I understanding this correctly? In other words, create mode does a translation between dos and UNIX permissions and force create mode just forces it to 2770 for example. Or are the two related and suggested to be used together.

Thanks,

Greg

Last edited by gsmonk; 07-20-2003 at 01:41 PM.
 
Old 07-20-2003, 02:50 PM   #5
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Bitwise means bit-by-bit.

The difference between "usual" and "force" create mask due to the operation is taken: AND and OR respectively.
When you create a file the permission rights are calculated (for instance -rw-rw-r- = 664). With a "usual" mask you can "switch off" some of them (for instance to make sure that the file will have -rw-rw--- = 660 use mask 770). And "force" option gives you the chance to set a bits (mask 006 gives -rw-rw-rw = 666 although the original rights were 664)
That's all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba question Ryknow215 Linux - General 3 02-23-2004 06:11 PM
Samba question Marklar Linux - Networking 30 01-02-2004 03:44 PM
A Samba Question? gsmonk Linux - Networking 2 08-20-2003 09:14 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration