Hello there,
I have a new MacBook since last week and I have encountered a slightly bizarre problem.
First: My Hardware:
brand new MacBook Pro, 13 inch
System: Mac OSX 10.6.3
(I did NOT encounter the same problem when I installed my old Mac (10.4) nearly 3 years ago!)
My login is an admin account.
Second: My problem:
I am trying to create a link called
/home/boris that points to /Users/boris/
to be able to use /home/boris as a shortcut (that many of my scripts do)
The problem is that even using sudo, this doesn't work:
boris@Jelzin:/home> sudo ln -s /Users/boris/ boris
ln: boris: Operation not supported
In fact, if I look at '/' ans using ls -l, I see
dr-xr-xr-x 8 root wheel 7B 31 May 02:01 home
I can change THIS using sudo to be able to write into it, but still it won't work, same message.
I cannot remove the folder ('Resource busy' , although fuser tells me it is not used, also the folder /home/ is completely empty, so it cannot be blocked by anything, really), the only thing in fact that I CAN do with it, is rename/move it (sudo mv /home /home_old). I can then create a new home folder (in which I am allowed to write) and create the link inside. The old folder /home_old is then also blocked from being deleted.
So far, so good.
BUT:
When I restart the computer (not the terminal only!), things change.
My folder /home_old can be deleted using normal rm-rf /home_old (not even sudo!)
But my /home folder is reset. The links inside are GONE!!! and the writing permissions are reset to what I stated above!!
Has anyone encountered the same problem?
How can I solve this? I cannot find any solution on the internet or your (and other) Mac forum.
I have never seen before that as sudo, the system doesn't allow me to do things and if I find a workaround, resets whatever I have done!
I'm a bit puzzled!
Third: Why I need this:
I am using this computer for work and quite some of my scripts have hardwired paths in them. I agree this might not be perfect, but it's the way it is (some things didn't accept ~/ as being the home folder, so I had to write it out). As I have started writing some of them on LINUX, I used /home/boris/ as my home folder and when I run these scripts now, they of course cannot find data, commands,...
I know that changing this path in all scripts is a possibility, but with hundreds of scripts and occasions, it's not a good solution.
I would be happy about any ideas.
Thanks a lot!
Boris
I have a new MacBook since last week and I have encountered a slightly bizarre problem.
First: My Hardware:
brand new MacBook Pro, 13 inch
System: Mac OSX 10.6.3
(I did NOT encounter the same problem when I installed my old Mac (10.4) nearly 3 years ago!)
My login is an admin account.
Second: My problem:
I am trying to create a link called
/home/boris that points to /Users/boris/
to be able to use /home/boris as a shortcut (that many of my scripts do)
The problem is that even using sudo, this doesn't work:
boris@Jelzin:/home> sudo ln -s /Users/boris/ boris
ln: boris: Operation not supported
In fact, if I look at '/' ans using ls -l, I see
dr-xr-xr-x 8 root wheel 7B 31 May 02:01 home
I can change THIS using sudo to be able to write into it, but still it won't work, same message.
I cannot remove the folder ('Resource busy' , although fuser tells me it is not used, also the folder /home/ is completely empty, so it cannot be blocked by anything, really), the only thing in fact that I CAN do with it, is rename/move it (sudo mv /home /home_old). I can then create a new home folder (in which I am allowed to write) and create the link inside. The old folder /home_old is then also blocked from being deleted.
So far, so good.
BUT:
When I restart the computer (not the terminal only!), things change.
My folder /home_old can be deleted using normal rm-rf /home_old (not even sudo!)
But my /home folder is reset. The links inside are GONE!!! and the writing permissions are reset to what I stated above!!
Has anyone encountered the same problem?
How can I solve this? I cannot find any solution on the internet or your (and other) Mac forum.
I have never seen before that as sudo, the system doesn't allow me to do things and if I find a workaround, resets whatever I have done!
I'm a bit puzzled!
Third: Why I need this:
I am using this computer for work and quite some of my scripts have hardwired paths in them. I agree this might not be perfect, but it's the way it is (some things didn't accept ~/ as being the home folder, so I had to write it out). As I have started writing some of them on LINUX, I used /home/boris/ as my home folder and when I run these scripts now, they of course cannot find data, commands,...
I know that changing this path in all scripts is a possibility, but with hundreds of scripts and occasions, it's not a good solution.
I would be happy about any ideas.
Thanks a lot!
Boris