Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: Inheriting rights

Inheriting rights 10 years 9 months ago #13282

  • IIL
  • IIL's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
Can someone give me a tip how to make a new directory inherit rights from its parent directory?
The administrator has disabled public write access.

Re: Inheriting rights 10 years 9 months ago #13286

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Posts: 613
  • Karma: 0
I don't know what kind of implementation for this you need, however here's a three-line bash script that would do just that (at least in gnu-linux).
[code:1]#!/bin/bash
MOTHERDIR=`dirname $1`
MOTHERPERM=`stat -c %a $MOTHERDIR`
mkdir -m $MOTHERPERM $1
[/code:1]

So i.e. you could put this in a file called /usr/bin/mkdir2, chmod +x /usr/bin/mkdir2; and then create your directories using 'mkdir2 /absolute/path/of/new/directory'
The administrator has disabled public write access.

Re: Inheriting rights 10 years 9 months ago #13327

  • IIL
  • IIL's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
Yes, this is what I mean. However, what if I want to do the same in gnome?
The administrator has disabled public write access.
Time to create page: 0.074 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup