0
votes
0answers
34 views

Changing permissions on Windows share from OS X?

How can I change permissions on a Windows file server from a script on OS X? In Windows, this can be done with the cacls command. Is there a way to do this from OS X?
1
vote
1answer
401 views

Why do my $PATH and /etc/paths Differ?

Typing export $PATH in Mountain Lion's Terminal returns ...
0
votes
1answer
124 views

How to leave only english language in bash shell in Mac OS X?

I'm using Mac OS X operating system with bash shell and I'm really tired to change keyboard layout every time I switch to shell. Does anyone know how to automatically set english layout after ...
6
votes
1answer
934 views

OS X Mountain Lion terminal tab name + open a new tab in the same directory

1) In Mountain Lion, through Preferences, you can change the setting of Terminal so that a new tab can be opened in the same directory as the opening tab. (i.e. if I am at ~/workspace and I open a new ...
3
votes
1answer
876 views

Terminal blank, .bash_profile broken

I was following a tutorial for configuring OS X Mountain Lion and somehow after editing the bash_profile I can't run the terminal properly. The terminal starts just fine but is blank, if a wait long ...
2
votes
3answers
104 views

How do I prevent $PATH from resetting itself each time?

I'm having difficulty setting up the PATH on my macbook pro. I followed this link to modify my path variable. Each time I start a new terminal I get a PATH pointing towards ...
1
vote
1answer
858 views

Remove file extension in OS X using Terminal

Problem: I have some 200+ files named something in line with "DSC01852.JPG.jpg". I would like to remove the file extension so the result becomes "DSC01852.JPG". Any suggestions? I looked at the mv ...
2
votes
4answers
2k views

Is it possible to run software as a different user under OS X Mountain Lion?

I've been trying to run apps as a different user. Attempt 1 sudo -u otheruser open /Applications/TextEdit.app launches the app but it uses the current user, not otheruser. Attempt 2 login username ...
4
votes
2answers
479 views

How do I back out of sudo privileges in OS X

Is there a command to de-elevate the user from sudo permissions after I execute a command such as sudo pmset sleep 0 so that when I try to execute another sudo command it asks for my password again? ...
5
votes
3answers
316 views

Can't assign to PS1 on OS X bash

I'm trying to set up PS1 so it displays the branch name on git: user.name:some/repo (master) $ However, nothing I do seems to work. Even when I just try assigning to PS1 directly, it doesn't work: ...
2
votes
1answer
472 views

Set Adobe Reader as Default for .PDF documents in Mac OSX 10.8 via the Terminal

I would like to know how to set the .PDF file extension to be associated with Adobe Reader as the default program by setting this via the terminal in Mac OSX 10.8. My reasons for needing to this this ...
3
votes
2answers
193 views

sudo - for what is it required in osx mountain lion?

New mac user here. I tried creating a symlink (installing x11) in /opt: ln -s /opt/X11 /usr/X11 But permission is denied. Obviously I can probably use sudo, but how do I know when doing so is ...
1
vote
2answers
384 views

Fix Mac OS X bash

When I start my Terminal I get this error. I have no clue how to fix that and where it comes from. Last login: Fri Nov 30 21:46:06 on ttys000 -bash: export: `/usr/local/bin': not a valid identifier
1
vote
1answer
1k views

Pass arguments to osascript via shell function in OS X Mountain Lion

The answer in How to open a new Firefox window with URL argument is broken in Mac OSX Mountain Lion (10.8.2). I can't comment on that answer or question, so I had to create a new question. It fails ...
1
vote
1answer
1k views

Mountain lion and git-completion

I have ML with Xcode installed tools (git coming from there). Later I've installed brew and install bash-completion, but git commands still not auto-completed. Brew has no such package. Google does ...
1
vote
1answer
338 views

script for auto adding routing table entries

I work for a company that has a lot of remote agents that use mac's. Before we will move them to mountain lion, we had to address the VPN issues we were having. We deal with a lot live media and ...