LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-06-2003, 06:33 PM   #1
Pyroknight
Member
 
Registered: Feb 2003
Posts: 31

Rep: Reputation: 15
Question Soft link help


I am running RedHat 8.0 .Whenever I create a soft link to my mounted windows partition with my non-root account it works partially. The problem is that even though I create it with my non-root account and look at the properties of the link it says that the file owner is root. I would be fine with this except that is leaves the directory as read only. If I log in as root and try to change the permissions of that very file that says root owns, it always unchecks the boxes I check and vice versa. This makes no sense to me.
The only way I have found to make a writable soft link for a non-root user is to log in as root and create the link and change the permissions.
Any help would be greatly appreciated, thank you!
 
Old 02-06-2003, 07:21 PM   #2
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
Have you tried this in CLI? I think the problem lies in that you've give only the symlink user access rights. For instance, let's say that A is the actual destination point of symlink B. So:

B -> A

Now, currently permissions are set as follows for the files (example only):

A - rwx for owner, r-- for group, r-- for world
B - rwx for owner, rwx for group, rwx for world

So, anyone can read, write or execute file A but only the owner (root in this case) has full access to it and everyone else can only read it. Since file B points to file A, it's just redirecting all users to A. However, no user but the owner (again, root here) has permissions to do anything but read it--but everyone has permission to be redirected by B to A. It's like everyone gets slingshot from the pointer B into a brickwall A. So, what you should do is set the permissions for the file A so that the users can do more than just read. However, it depends on just how much permission you want granted. You could give everyone read, write, and execute access but that could pose a security risk.

In the CLI, su - to root, then set the permissions as follows:

chmod 755 <filename>

but without the <> and obviously replace "filename" with the actual filename. This will give the following permissions:

owner (root in this case): rwx
group: r-x
world: r-x

If you need more information, man chmod will help you out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
removing a soft link quietguy47 Linux - General 3 12-31-2011 10:34 PM
how to copy soft link hongxing Linux - Software 5 02-24-2010 08:14 AM
Soft Link and Hard Link Moataz Red Hat 1 04-25-2005 07:30 AM
Wat is a Soft Link? wed3k Linux - Newbie 2 08-19-2003 02:23 PM
Will soft link work? zulu1_hl Linux - Newbie 1 02-26-2003 03:39 PM


All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration