Sponsored Content
Top Forums UNIX for Dummies Questions & Answers mkdir: cannot create directory `/builds/somedir/': Permission denied Post 302526827 by Technext on Wednesday 1st of June 2011 02:05:05 PM
Old 06-01-2011
Thanks for your replies! To update, things are working now. Smilie I think i now know what blunder i was committing: i was running this script as follows:
Code:
sudo sh scriptname.sh

'su' must be assuming that my intended user is 'root', and since even root user was not able to create directory in the given path, the script was failing. When i changed it to the following, it worked:
Code:
sudo sally sh scriptname.sh

@Corona688: Nice catch! However, I am running 'mkdir -p'. By the way, even if i had not used -p option, i think i would have got a different error message, correct?

To answer your question, 'harry' belongs to another group called 'teacher'. I was wondering why 'setfacl' did not work though i could see it set using the 'getfacl' command. I was wondering about the other way that you mentioned to remedy this. Can you please hint me what you were referring to?

@ctsgnb: I am on a different machine than the Samba server. I just see the exported Samba share. Though i asked from my colleague whether the share is a Samba share or some other type of share, and he did say Samba, I was still wondering whether there is any concrete way to ascertain this. Thanks for the link ctsgnb!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

./ Permission Denied.

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

Permission denied message for parent directory

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

mkdir: cannot create directory

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

[Solved] how to create multiple directory in one mkdir command

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

Mkdir: cannot create directory `/home/phpmy/html': Permission denied centos

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

Trying to create a script to run as root, permission denied

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

Mkdir a/b/c # where a/b does not exists. is it possible to create it ?

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

Permission to Oracle server to create a directory in a particular path

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

Permission denied

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
SHTOOL-MKDIR.TMP(1)					      GNU Portable Shell Tool					       SHTOOL-MKDIR.TMP(1)

NAME
shtool-mkdir - GNU shtool mkdir(1) style command SYNOPSIS
shtool mkdir [-t|--trace] [-f|--force] [-p|--parents] [-m|--mode mode] [-o|--owner owner] [-g|--group group] dir [dir ...] DESCRIPTION
This is a mkdir(1) style command with additional options and the ability to be smart if the directory already exists which is important for installation procedures. OPTIONS
The following command line options are available. -t, --trace Shows the actually involved shell commands. -f, --force Forced continuation and no complaints if directory already exists. Default is to terminate with error. -p, --parents Automatic parent directory creation. Default is to only create the last directory in the path and fail if parents are missing. -m, --mode mode The directory mode applied to the directory, see chmod(1). Omitting mode skips this step and leaves the operating system default which is usually based on umask(1). Some directory modes require superuser privileges to be set. Default is to stick with operating system defaults. -o, --owner owner The directory owner name or id applied to the directory, see chown(1). This option requires superuser privileges to execute. Default is to skip this step and leave the operating system default which is usually based on the executing uid or the parent setuid directory. -g, --group group The directory group name or id applied to the directory, see chgrp(1). This option requires superuser privileges to execute to the fullest extend, otherwise the choice of group is limited on most operating systems. Default is to skip this step and leave the operating system default which is usually based on the executing gid or the parent setgid directory. EXAMPLE
# Makefile install: shtool mkdir -f -p -m 755 $(bindir) shtool mkdir -f -p -m 755 $(mandir)/man1 : HISTORY
The GNU shtool mkdir command was originally written for Public Domain by Noah Friedman and later revised by Ralf S. Engelschall <rse@engelschall.com> in 1999 for inclusion into GNU shtool. SEE ALSO
shtool(1), mkdir(1). 18-Jul-2008 shtool 2.0.8 SHTOOL-MKDIR.TMP(1)
All times are GMT -4. The time now is 01:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy