LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2011, 08:14 AM   #1
diogosalazar
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Rep: Reputation: 0
Samba share file permissions


Hi, I have set up a computer to use as a file server using Samba.

I attached a 1TB hard disk to it and had the system to mount it automatically.

I have 4 user accounts which will be able to access this network share. An administrator account is called "server". I'll call them user1, user2 ... user4.

This is the folder structure:

+-/mnt/FILES
+-BACKUP
backup files (accessible only to "server" user)
+-MUSIC
music1.mp3 (read only files for all users)
music2.mp3
+-PUBLIC
public files... (read/write for all users)
+-USERS
+user1
user1 files... (read only for same group members)
+private
user1 files... (not accessible to group members)
+user2
user2 files... (read only for same group members)
+private
user2 files... (not accessible to group members)
+user3
user3 files... (read only for same group members)
+private
user3 files... (not accessible to group members)
+user4
user4 files... (read only for same group members)
+private
user4 files... (not accessible to group members)

I don't know which groups I should create. I'm having a hard time setting file/folder permissions. And I wanted to know how to set Samba so that it won't ask for a password when accessing public/group files, but asks for it when accessing private user files.

Thanks in advance.
 
Old 03-19-2011, 09:44 AM   #2
brian-va
Member
 
Registered: Dec 2009
Distribution: Debian
Posts: 46

Rep: Reputation: Disabled
Maybe this, will help you out with the smb.conf file and permissions. In particular, make sure you are setting samba passwords in addition to regular user passwords for each user. As for accessing the shares, I add the shares to my fstab (or map networked drive in windows speak), so it doesn't ask for passwords. I'm not convinced, that in a home setup or something that really demands little to no need for security, that putting in passwords each time is really necessary; you already have one on the computer for logins and unlockings. If that computer is stolen or hacked and they manage to guess/crack the password while still being connected to your network this may be an issue, as they would see whatever that computer was given access to. Auto-mounting also makes it real easy to use an rsync crontab to automate backups. If this is a business setup where security is a concern and you needs passwords to work like you described, then maybe someone will be able to shed a little light on that for you.
 
  


Reply

Tags
file permission, mount, samba, server, share



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
Using Samba share from Windows XP x64 client - file permissions njepr Linux - Newbie 2 11-09-2010 02:50 PM
Samba file share: need help with permissions xzased Linux - General 1 10-13-2010 10:12 PM
Samba 3.x file permissions on Windows share lefty.crupps Linux - Software 0 09-07-2006 10:08 AM
Preserve file permissions when copying from NTFS to a Samba share? somedude Linux - Software 4 06-11-2004 09:20 AM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:02 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