Creating script to change ownership directory on RHEL4U3 at startup
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The main aim that I want to change the ownership is because in the Workstation, I want to Run VMware (Windows XP) as guest operating system, meanwhile I use RHEL4U3 as host operating system. In order using all devices through the VMware (Windows XP), I must change the /dev/ directory ownership to the login username (ferianto), because user not allowed to login via root.
I use run level 5.
When I checked directory /etc/rc5.d, I found the other file which has S99xxx, at the prefix. So, how can I create new the link for file "owner" if there has been a file using prefix "S99"? Is there any rule to give the prefix number "Sxx"?
Is the script that I have made before correct for this reason? So , then to run the script ("owner") , I just create the link as you said before.
You don't have to change the ownership of the devices. I haven't changed the ownership of any devices except the network device when I want to run the network card in promiscuous mode.
Are you getting a specific error or are you having problems installing the product? I use VMWare Workstation and the docs here are quite good. I'd recommend you use them before you make changes to the /dev hierarchy.
We installed VmwareWorkstation-6.02-59824.rpm packet at the workstation.
The packet can be installed sucessfully without any error.
In our computer system, we use NIS system, so user home directory was stored
at Network system.
We use Vmware to run Windows XP at Linux (RHEL4) at the same time.
In the workstation, we have 2 hardisk. We install RHEL4 at the first disk and
Windows at another disk.
We can not Finish steps to "create New Virtual Machine" at VMware Wizard menu. I got error messages at "Select Physical Disk Partition" at
"New Virtual Machine Wizard menu". This is the error messages:
Failed to load partitions for device /dev/hdb : Insufficient permission to access file "
This problem can be solved if I change /dev ownership to username who access the computer (like : ferianto).
This is the reason why I want to change the ownership /dev/ directory.
But, the problem is I must type command "chown -Rf ferianto * " at command prompt everytime the computer reboot to change ownership of /dev directory.
Because I see that RHEL4 always re-create /dev file or give back /dev ownership to root everytime when the computer reboot although I have changed the
That is why I want to make script for it
Where should I place the script? Is the script that I have made before correct?