Creating Subdirectory

Discussion in 'Mac Basics and Help' started by brictonperez, Jun 5, 2009.

  1. brictonperez macrumors newbie

    Joined:
    Jun 5, 2009
    #1
    I've been trying to make a directory into the /var/ but when I write the mkdir name directory...it says mkdir: name : permission denied...

    Can someone help me,
     
  2. spinnerlys Guest

    spinnerlys

    Joined:
    Sep 7, 2008
    Location:
    forlod bygningen
    #2
    Are you "root" as a user or your normal Admin user?

    You may have to be root to write to such an important system folder.

    May we know, why you want to create a folder there?
     
  3. MacManiac76 macrumors 65816

    MacManiac76

    Joined:
    Apr 21, 2007
    Location:
    White Mntns, Arizona
    #3
    It is a command that has to be run with root/admin privileges, so just type "sudo mkdir <foldername>" and it will ask for a password to successfully run the command.
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    If you don't know why you're having trouble writing to /var/ then you shouldn't be trying. Only geeks should be there as you could seriously damage your machine messing around in there. Seriously!
     

Share This Page