image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old May 8th, 2005, 07:00 PM
xaosai's Avatar
Xaosai
 
Join Date: Feb 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
xaosai is on a distinguished road
permission problem I think??

I just bought a new G5 with bash instead of my old mac's tcsh. I'm trying to add the fink bins "/sw/bin" and "/sw/sbin/" to the PATH variable using x11 so I can easily run my downloads. Problems:

Tried to modify the file '~/.profile' by add the following line:
export PATH="$PATH:/sw/bin:/sw/sbin"
I used pico editor to add the line but it wouldn't let me save it.

Then, I tried to modify permissions on the file '.profile' and
the error message says operation not permitted in either terminal or x11.

Then, tried logging in as root using 'su' and bash didn't accept my password even though my account is admin. Upon inspecting my G4, under the security menu in account preferences, I noticed the little check box "Allow user to administer this computer" was checked, whereas on my G5 it is not. Any ideas on what to do? All I want to do is change my path in x11 so I can run xmms. Thanks.
Reply With Quote
  #2  
Old May 9th, 2005, 03:48 AM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,492
Thanks: 0
Thanked 1 Time in 1 Post
Viro will become famous soon enoughViro will become famous soon enough
If you want the changes to stick in X11, you need to edit the .xinitrc file and not the .profile.

As for changing permissions, why not use sudo? So you'd type 'sudo chmod a+rw .profile' without the quotes to change the permissions of .profile
Reply With Quote
  #3  
Old May 9th, 2005, 05:03 AM
xaosai's Avatar
Xaosai
 
Join Date: Feb 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
xaosai is on a distinguished road
Sudo worked. I don't see a hidden file called .xinitrc anywhere on my machine. Which directory should it be in? home? Should i just create it? Thanks.
Reply With Quote
  #4  
Old May 9th, 2005, 05:14 AM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,492
Thanks: 0
Thanked 1 Time in 1 Post
Viro will become famous soon enoughViro will become famous soon enough
It should exist in your home directory. Just like .profile you will have to create it if it doesn't exist.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod problem SandManMattSH Unix & X11 4 May 7th, 2005 09:26 PM
preferences problem (view options and msn) Incubated Funk Mac OS X System & Mac Software 0 April 13th, 2005 10:39 AM
Barbie Swanlake - file permission problem xuratoth Mac Games 4 March 29th, 2005 08:30 PM
File Permission Problem Brian Watson Mac OS X System & Mac Software 0 November 22nd, 2004 09:28 AM
My SQL problem (user privileges) Luiso Design & Media 6 January 30th, 2004 05:42 AM


All times are GMT -5. The time now is 10:04 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.