06-01-2011
Is the script running mkdir, or mkdir -p? without -p, mkdir will always fail when the directory already exists.
Depending on what groups harry belongs to, it may be possible to remedy the permissions without resort to ACLs.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Could someone tell me why I am getting a permission denied message when I attempt to run this on an out file? Thanks! (8 Replies)
Discussion started by: trouscaillon
8 Replies
2. Solaris
Hi All,
I have an issue that's eating my head for few days. I would appreciate if anyone could help me out in this to resolve this.
In Solaris 8 container I am facing the below issue.
As oracle user when I do ls -l in /dboracle mountpoint getting permission denied error messages.
$ ls... (3 Replies)
Discussion started by: Sreerag446
3 Replies
3. UNIX and Linux Applications
Hi, I have network mount on two servers.
One server I can create any directories without any issues, other server with the similar mount, I am not able to create directories starting with number!
Creation, name start with a number:
$ mkdir 1212
mkdir: cannot create directory `1212': No such... (12 Replies)
Discussion started by: ./hari.sh
12 Replies
4. Shell Programming and Scripting
Hi, Unix Gurus,
- I have a simple question, I need create multiple directory. I use
mkdir {dir1, dir2, dir3)
I got one directory as
{dir1, dir2, dir3}
I searched @ google, I got answer as above code.:wall::confused:
Anybody has any idea
Thanks in advance
---------- Post updated... (3 Replies)
Discussion started by: ken002
3 Replies
5. Red Hat
for incompatibility installation problems, I've decided to reinstall Centos 6.3
as can be seem from the df output, I've partitioned both / and and /home directories
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 12G 5.3G 6.5G 45% /
tmpfs ... (2 Replies)
Discussion started by: jediwannabe
2 Replies
6. Shell Programming and Scripting
Hello all, I am trying to create a script or a .command file that will run for me and my other techs on many, many Mac OSX computers that will add a file to the /etc/ folder called /etc/launchd.conf
Every time I try to run the script, I get "Permission Denied" when trying to put the file into... (13 Replies)
Discussion started by: DonnieNarco
13 Replies
7. UNIX for Dummies Questions & Answers
Is is possible to create the directories in following manner.
for example my home dir is empty
and i want to create dir a/b/c
mkdir a/b/c # where a/b does not exists. (5 Replies)
Discussion started by: anandgodse
5 Replies
8. Shell Programming and Scripting
i need to give permission to ORACLE SERVER to create a directory in a particular path.
How to do it?Oracle server is installed on SOLARIS (16 Replies)
Discussion started by: rafa_fed2
16 Replies
9. Linux
I am using korn shell
When I type in Telnet on cmd line, I get message
"cannot execute"
How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there
Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies
LEARN ABOUT MOJAVE
mkpath_np
mkpath_np(3) BSD Library Functions Manual mkpath_np(3)
NAME
mkpath_np -- Auxiliary routine for efficiently creating paths
SYNOPSIS
#include <unistd.h>
int
mkpath_np(const char * path, mode_t omode);
DESCRIPTION
This routine allows the caller to create a path, including intermediate directories. It is equivalent to calling mkdir(1) with the -p com-
mand line argument.
Intermediate directories are created with permission bits of rwxrwxrwx (0777) as modified by the current umask, plus write and search permis-
sion for the owner.
The leaf directory is created with permission bits of omode as modified by the current umask.
RETURN VALUES
A 0 return value indicates success. If an error occurs, the return value is a non-zero error code. Note that EEXIST is returned iff the
leaf directory already exists and is a directory, so under certain circumstances, this error value may not indicate a failure state.
This routine does NOT modify errno.
ERRORS
Any error code that can be returned by mkdir(2) can be returned by mkpath_np(), but mkpath_np() will return the error code rather than set-
ting errno.
[ENOTDIR] A component of the path is not a directory (in contrast to mkdir(2) which returns this based on the path prefix rather
than the path).
[EEXIST] The path already exists and is a directory.
HISTORY
This function first appeared in iOS 5.0.
SEE ALSO
mkdir(1), chmod(2), mkdir(2)
Mac OS X July 13, 2011 Mac OS X