Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-26-2004, 01:05 AM
|
#1
|
Member
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Rep:
|
browseable home directories
My users' home directories are visible in Network Neightbourhood eventhough i have browseable = no, anybody knows why?
Code:
[homes]
comment = Home Directories
browseable = no
valid users = %S
writable = yes
I read that if i have $ at the end of the directory name, its won't be visible in network Neighbourhood, so can I put [homes$]?
Thanks in advance~
|
|
|
07-26-2004, 01:23 AM
|
#2
|
Member
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89
Rep:
|
guest ok = no
|
|
|
07-26-2004, 04:39 AM
|
#3
|
Member
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Original Poster
Rep:
|
Sorry, mate~
That did not work...
I am wondering whether you come across this problem or not... i cannot see any home directories after i rebooted the PC... but when i start to logon one user at a time, the 2nd user sees the first user's home and the 3rd user sees both the 1st and 2nd user's home!
Of course user2 cannot access user1's home and vice versa, i just want to make it look tidy...
Any ideas?
Anyway, thanks for the reply
|
|
|
07-26-2004, 06:13 AM
|
#4
|
Member
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89
Rep:
|
Well, here is what I use for the home directories. If this does not work, I will post my entire smb.conf.
[homes]
comment = Home Directories
browseable = no
writable = yes
create mode = 0600
directory mode = 0700
valid users = %S
|
|
|
07-27-2004, 12:07 PM
|
#5
|
Member
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Original Poster
Rep:
|
I am trying it now~
Just wondering... whats the difference between create mode and create mask?
Thanks for the reply
|
|
|
07-27-2004, 06:29 PM
|
#6
|
Member
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89
Rep:
|
I think that create mode is who can create new files and the create mask is what pemissions created files have, but I'm not sure
|
|
|
07-27-2004, 08:43 PM
|
#7
|
Senior Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607
Rep:
|
No, they are the same, according to man smb.conf:
Quote:
create mode
This parameter is a synonym for create mask.
create mask (S)
When a file is created, the necessary permissions are calculated
according to the mapping from DOS modes to UNIX permissions, and
the resulting UNIX mode is then bit-wise 'AND'ed with this
parameter. This parameter may be thought of as a bit-wise MASK
for the UNIX modes of a file. Any bit not set here will be
removed from the modes set on a file when it is created.
The default value of this parameter removes the 'group' and
'other' write and execute bits from the UNIX modes.
Following this Samba will bit-wise 'OR' the UNIX mode created
from this parameter with the value of the force create mode
parameter which is set to 000 by default.
This parameter does not affect directory modes. See the parame-
ter directory mode for details.
Note that this parameter does not apply to permissions set by
Windows NT/2000 ACL editors. If the administrator wishes to
enforce a mask on access control lists also, they need to set
the security mask.
Default: create mask = 0744
Example: create mask = 0775
|
|
|
|
07-27-2004, 08:48 PM
|
#8
|
Member
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89
Rep:
|
You learn something new everyday. Personally, I don't like to use smb at all. I prefer to move my files by something more secure like scp. I guess that I could wrap the smb connection with ssl since all my windows boxes are running ssh though but that seams like a hassle, LoL. Thanks for the insight motub .
|
|
|
07-27-2004, 08:52 PM
|
#9
|
Senior Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607
Rep:
|
You're welcome, but that doesn't explain why there's a synonym in the first place...? Seems weird to me.
What's scp and what's the benefit over Samba (yes, I guess I could look it up, but a user's-eye perspective is often more helpful than a man page )?
|
|
|
07-27-2004, 09:58 PM
|
#10
|
Member
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Original Poster
Rep:
|
Ahh... more reading material
Thanks guys, i reckon i should spend some time with man pages before trying silly things
Archite:
The mode/mask does not work, i have the home directories set to drwx------ and both are owned by the user... still wondering whats wrong...
Mind if i look at your smb.conf?
Also would like to hear more about the scp you have mentioned! Sounds interesting
motub:
Do you have any suggestions?
|
|
|
07-27-2004, 11:31 PM
|
#11
|
Member
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89
Rep:
|
okay, say you have user1 who belongs to the group users. If you set his home directory to drwx------ then he will not be able to access his own direcotry. Quick fix, create a group called user1 and set user1's main group to user1.
|
|
|
07-28-2004, 10:42 AM
|
#12
|
Member
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Original Poster
Rep:
|
oh, there's no problem with my users accessing their own home drives
The problem is users can see each others home in XP
|
|
|
07-28-2004, 11:05 AM
|
#13
|
Member
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89
Rep:
|
Have you tried playing with user level security? That should make it so that only authorized users see their own homes.
|
|
|
07-28-2004, 08:00 PM
|
#14
|
Member
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301
Original Poster
Rep:
|
Oooh, interesting... where do I go in order to do that?
|
|
|
All times are GMT -5. The time now is 05:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|