Samba read only subfolder.

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Samba read only subfolder.
# 1  
Old 10-05-2009
Question Samba read only subfolder.

Hi,

I need to make a folder read only under a fileshare that has full permissions granted to it. The fileshare with full permissions is /u02/prodfileshare. The folder I need to make read only for everyone except the owner of the folder is called /u02/prodfileshare/EFT/purchases. Details of my configuration are below.


# ls -ld /u02/prodfileshare/
drwxrwxrwx 48 oraprod dba 2048 Sep 30 14:31 /u02/prodfileshare/

# ls -ld /u02/prodfileshare/EFT/purchases
drwxr-xr-x 2 oraprod dba 512 Oct 2 12:47 /u02/prodfileshare/EFT/purchases


[global]
workgroup = EXAMPLE.COM
server string = Samba Server
security = SHARE
guest account = oraprod
log file = /var/samba/log/log.%m
max log size = 50
dns proxy = No


[homes]
comment = Home Directories
read only = No
browseable = No


[prod_fileshare]
comment = UAT Share
path = /u02/prodfileshare
read only = No
guest ok = Yes



Even though I have denied write access to group and other on the purchases folder itself using UNIX permissions, the users can still write to the folder when connecting through Samba. That's because the guest account is oraprod. This needs to be oraprod as an Oracle application accesses the folder as well. I have a test system where I can try different configurations if anyone has any ideas. If you need anymore information please let me know.

Thanks for your help,

Sparcman
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Proxy Server

Samba on AIX, issues setting read-only flag on files?

Hello, I am having issues setting the "read-only" flag via Windows Explorer on my AIX Samba share... I have on my AIX 7.1 system installed Samba 3.6.24 and configured, joined to our Windows domain successfully. The samba binaries I got from perzl.org/aix In my smb.conf I have... ... (1 Reply)
Discussion started by: c3rb3rus
1 Replies

2. Solaris

samba read write access to owner and no access to other users

Hi All, I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration. Regards, Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies

3. UNIX for Dummies Questions & Answers

removing files in a given subfolder

Hello, im new to this forum and directly start with a problem... :) I have a folder structure like : /folder/01/1/oldfiles /folder/01/2/oldfiles /folder/02/1/oldfiles /folder/0x/y/oldfiles Every Month a new folder adds automaticly from the system. Now i need an idea how to search... (6 Replies)
Discussion started by: Hugi
6 Replies

4. Shell Programming and Scripting

Create subfolder within folder in one command

suppose if i am checking folder g as shown below path a/b/c/d/e/f/g ,and some directory c,d,e,f,g not present then is there anyway to create directory in one command or i need to use mkdir for everyfolder (3 Replies)
Discussion started by: lalitpct
3 Replies

5. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

6. Shell Programming and Scripting

Link multiple files from different subfolder to a new subfolder

Hi, I have the following subfolder with files: /data/a/1/xxx.txt /data/b/2/yyy.txt /data/c/3/zzz.txt And i have a set of new folders which have exactly the same structure as above but different disk without the files: /data_02/a/1/ /data_02/b/2/ /data_02/c/3/ Now i would like to... (6 Replies)
Discussion started by: total_ysf
6 Replies

7. UNIX for Dummies Questions & Answers

Unzip subfolder to some path.

I have a zip file (somezipfile.zip) with the following contents in it: dir1/subdir1/somefile1.txt dir1/subdir2/somefile2.txt dir1/subdir2/somefile3.txt dir1/somefile3.txt dir1/somefile4.txt dir2/somefile5.txt dir2/somefile6.txt Lets say I unzip this to my home directory so now I have: ... (0 Replies)
Discussion started by: mrwatkin
0 Replies

8. UNIX for Dummies Questions & Answers

How to Get the count fo files in each subfolder

Hi is there a command to get the count of files inside each sub directory in a directory. example: in a directory like this /opt/:> ls subdir1 subdir2 subdir3 I need to see the count of files in sub directories like this: /opt/subdir1: 3 files /opt/subdir2: 5 files /opt/subdir3: 10... (1 Reply)
Discussion started by: sanjangr
1 Replies

9. Solaris

Samba: share subfolder as read only.

Hi, Currently I have a Samba shared configured as follows: comment = Public fileshare path = /u02/pub guest ok = Yes writeable = Yes There is a subfolder under /u02/pub called /u02/pub/expenses/hardware that I need to make read only. How do I do this? I am new to using Samba. ... (2 Replies)
Discussion started by: sparcman
2 Replies

10. Shell Programming and Scripting

How to read a subfolder one by one in parent folder?

Hi friends, I am getting some trubles in folder reading. I am having 10 subfolders inside server7 folder. i wanna to read a subfolder name first and check if the foldername gets started with "http". if so , i need to read a file inside that folder. This willl continue for... (1 Reply)
Discussion started by: kamatchirajan
1 Replies
Login or Register to Ask a Question