Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vfs_readonly(8) [osx man page]

VFS_READONLY(8) 														   VFS_READONLY(8)

NAME
vfs_readonly - make a Samba share read only for a specified time period SYNOPSIS
vfs objects = readonly DESCRIPTION
This VFS module is part of the samba(7) suite. The vfs_readonly VFS module marks a share as read only for all clients connecting within the configured time period. Clients connecting during this time will be denied write access to all files in the share, irrespective of ther actual access privileges. This module is stackable. OPTIONS
readonly:period = BEGIN, END Only mark the share as read only if the client connection was made between the times marked by the BEGIN and END date specifiers. The syntax of these date specifiers is the same as that accepted by the -d option of GNU date(1). EXAMPLES
Mark all shares read only: [global] vfs objects = readonly Mark the [backup] share as read only during business hours: [backup] path = /readonly vfs objects = readonly readonly:period = readonly:period = "today 9:00","today 17:00" VERSION
This man page is correct for version 3.0.25 of the Samba suite. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. VFS_READONLY(8)

Check Out this Related Man Page

VFS_SHADOW_COPY(8)					    System Administration tools 					VFS_SHADOW_COPY(8)

NAME
vfs_shadow_copy - Make a Samba share read only for a specified time period SYNOPSIS
vfs objects = shadow_copy DESCRIPTION
This VFS module is part of the samba(7) suite. The vfs_shadow_copy VFS module functionality that is similar to Microsoft Shadow Copy services. When setup properly, this module allows Microsoft Shadow Copy clients to browse "shadow copies" on Samba shares. This module is stackable. CONFIGURATION
vfs_shadow_copy relies on a filesystem snapshot implementation. Many common filesystems have native support for this. Filesystem snapshots must be mounted on specially named directories in order to be recognized by vfs_shadow_copy. The snapshot mount points must be immediate children of a the directory being shared. The snapshot naming convention is @GMT-YYYY.MM.DD-hh.mm.ss, where: o YYYY is the 4 digit year o MM is the 2 digit month o DD is the 2 digit day o hh is the 2 digit hour o mm is the 2 digit minute o ss is the 2 digit second. The vfs_shadow_copy snapshot naming convention can be produced with the following date(1) command: TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S EXAMPLES
Add shadow copy support to user home directories: [homes] vfs objects = shadow_copy CAVEATS
This is not a backup, archival, or version control solution. With Samba or Windows servers, vfs_shadow_copy is designed to be an end-user tool only. It does not replace or enhance your backup and archival solutions and should in no way be considered as such. Additionally, if you need version control, implement a version control system. VERSION
This man page is correct for version 3.0.25 of the Samba suite. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. Samba 3.5 06/18/2010 VFS_SHADOW_COPY(8)
Man Page

14 More Discussions You Might Find Interesting

1. Solaris

Samba 3.0.22 on Solaris9

Hello all, I have successfully installed samba 3.0.22 on my sol 9 e250 machine. I created my share but when i try to get to my share from my windows machine, it prompts me for my username and passwd, i enter it and it just comes back prompting me for my username and passwd agai,. Has anyone been... (8 Replies)
Discussion started by: Gegestic
8 Replies

2. Shell Programming and Scripting

output result (period -1)

hello, I have the following basic script which input the period, but I would like to output is period -1.. how? echo Please input period (yyyymm): read PERIOD OUTPUT=$PERIOD -1 echo " you request period -1 is $OUT" input 200705 output 200704 input 200701 output 200612 The above... (4 Replies)
Discussion started by: happyv
4 Replies

3. Shell Programming and Scripting

Files with 0 file size and created today

hi, I am building a script to identify those files created/modified today and with file size 0. I am able to find the files with 0 file size and created/modified in last 24 hrs as shown below but not today (current date), I tried using (touch -t time filenm) but in my version of unix at work it... (7 Replies)
Discussion started by: rushs682
7 Replies

4. Shell Programming and Scripting

Birthday Calculation

Hi I have a simple question. Is there an easy way to read a date of birth from a file and calculate how old that person is based on today's date? And would I need the make sure the birthdates are enterered in a particular format? Thanks (10 Replies)
Discussion started by: mustaine85
10 Replies

5. UNIX and Linux Applications

Print date at END clause of AWK

Hi to all! I 'm new in unix programing so... may be I decided a wrong tool to solve the problem but anyway... all road goes to rome jajaja. My question is: There is any way to print date at the END clause of an AWK script. I mean, I'm writing a tool with AWK and the results are redirected to a... (4 Replies)
Discussion started by: fmeriles
4 Replies

6. Shell Programming and Scripting

SAMBA Mount

Hi, Please can somebody advise me on the issue where I have a Samba mount created for one of the directories with read only access to all the IP's in the network. Now beside read only access I want to provide Modify access also for two IP's. Please advise. Best Regards, Shazin (5 Replies)
Discussion started by: Shazin
5 Replies

7. Shell Programming and Scripting

Remove lines before string1 and after string2

Hello All... I have a text file (.ics) which I need to read into a variable but ONLY the part including and after 'BEGIN:VEVENT' and ending with END:VEVENT Anything before BEGIN:VEVENT or after END:VEVENT should be ignored. Thanks for input Jeff BEGIN:VCALENDAR VERSION:2.0... (3 Replies)
Discussion started by: uptimejeff
3 Replies

8. UNIX for Dummies Questions & Answers

Hai all, please help

i'm new at UNIX, and i;ve wonderd - can i write an alias that will show me only files from today? (not directories) ls -somthing, or some script that works with date... :) Thanks (4 Replies)
Discussion started by: roei86
4 Replies

9. UNIX for Dummies Questions & Answers

Set readonly

I'm confused using hdparm -r1 /dev/sda9 although it shows readonly set to 1 (on) - I can touch a file and edit and save it. why? (7 Replies)
Discussion started by: daWonderer
7 Replies

10. HP-UX

memory consumption over a time period

Hi, Can some one please tell me how do I generate a report of the Memory Consumption over a time period: HP-UX B.11.31 U ia64 0440531406 unlimited-user license I normally use glance to monitor memory in run time. Note: I do not have root privileges. Thanks Danish ... (5 Replies)
Discussion started by: danish0909
5 Replies

11. Shell Programming and Scripting

How to Add Footer?

Hi Experts, I need to Add a footer in my file with today's date and time. How can i do that??:cool: (4 Replies)
Discussion started by: Adhi
4 Replies

12. Emergency UNIX and Linux Support

Time out Issue

Users connecting to AIX server face disconnection after a period of inactivity. I have tried checking the /etc/profile.The TMOUT value seems to be 0.However there is disconnection being faced. Can someone help me to identify other areas that I probably may be missing. (4 Replies)
Discussion started by: ggayathri
4 Replies

13. Windows & DOS: Issues & Discussions

Dreaded Win7 0x80070035 with Samba

I have a Win7 machine which is connected to a perfectly ordinary Samba share. Suddenly, it has started refusing to connect to it with error 0x80070035 -- "the network path was not found". Attempting to login with its IP address \\192.168.x.x does not work either. When I attempt to diagnose the... (8 Replies)
Discussion started by: Corona688
8 Replies

14. Ubuntu

Samba share on software raid1

Hello! i am having a ubuntu server with two empty disks and connected software raid1 to it. I am having /mnt/raid folder which i created to mount it. SO should i now make a share folder inside that or what? I ama bit confused when a raid is present. (27 Replies)
Discussion started by: tomislav91
27 Replies