Using Termainl os x 10.5.6

mofohella

Registered
for some reason, i am not sure what the correct command is in terminal to change a file permission? I am trying to change the services file, getting permission denied. can some one provide me with the correct command to change permission on this file using terminal?
 
You will need to provide a lot more information, such as:
What service file? Be specific with the name of the file, and its location on your hard drive. You may find that you don't really need to change permissions. You don't need to do that from the terminal, usually, but through the info window for the file itself. A file that is used within the system, may not let you do that anyway, and you could end up ruining your system, and needing to erase and install.
Someone will be more familiar that I am about some of the system files, but you need to identify which file you are asking about.

Also, what is your higher goal here? What do you want to achieve?
 
You may need to sudo it.
chmod.
And like with any terminal command: man is your best friend (aka man sudo, man chmod, man chown..)
 
the file i want to change is the etc/services file so i can change the port for ftp, my isp blocks port 21...i cant find the this via the ui, unless someone can tell me how to find it that way, otherwise i can get to it using terminal. hopefully that is enough information..unless someone can help me change my port diffently that changing it in the services file.
 
the file i want to change is the etc/services file so i can change the port for ftp, my isp blocks port 21....
If your ISP blocks a port, then nothing that you do locally with the Terminal will unblock it. If you have legitimate access to the server, then you may some protocol other than FTP to access it.
 
*cough*... He's talking about his local FTP _server_ on Mac OS X, which automatically accepts requests on port 21. He wants _others_ to be able to connect to his machine over FTP.

I'd suggest a secure connection (SFTP) anyway, though.
 
In Finder, Go > Go to Folder > type /etc in that.
a file called services should show up there.
 
Back
Top