Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-29-2011, 03:52 AM   #16
LQ Newbie
Registered: Jul 2006
Location: Bath, uk
Distribution: PCLinuxOS; CentOS; Distributions developed with Wind River Linux 4.1
Posts: 19

Rep: Reputation: 0

Hi chrism01,

Thank you for your reply.

In fact, it is my original question (sorry if I have not been very clear).

What I want to do is: stop an user from using su, however my system is based on Busybox and from this fact su is not a binary but su is a link to Busybox binary, which is why I am saying that it is a shame that I can't change permissions on links.

I am agree with about ACL but I don't think that this package is supported by Wind River Linux.

I just think about thing else, I could remove/rename the link and create a script instead to call the new su command and change the permission on the script. This should work.



Last edited by numa; 07-29-2011 at 05:50 AM. Reason: New idea to the problem
Old 07-29-2011, 04:49 AM   #17
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
As I said above, being able to change permissions on symlinks wouldn't help you at all, because users could still create their own symlinks with whatever permissions they wish. Nothing stops you from building your own busybox, though. Busybox has a kernel-like menuconfig system which allows you to disable any applet, including su. I don't know what implications might that have on wind river linux though, but su is usually not something that your init system will use, so it should allow you to boot at the very least. Then you can install su as an external utility and restrict it so only root can use it. Does that sound ok?
Old 03-22-2012, 07:08 PM   #18
LQ Newbie
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
chmod symbolic link

Originally Posted by mikeshn View Post
I know that chmod cannot change symbolic link permission?
Why is it prohibited?
It does not seem to be prohibited. Use chmod -h, maybe with sudo.



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic link/ commad name change. YellowFin Linux - Software 1 10-13-2005 11:26 PM
Fedora/JPilot Symbolic Link and Chmod get reset on boot tonyzoc Linux - Hardware 3 12-13-2004 01:15 PM
chmod permission change? tidasu Linux - Newbie 7 08-30-2004 06:02 PM
using chmod to change file permission kiwidoc Linux - Newbie 3 07-25-2004 06:39 AM
chmod 755 won't change file permission. duffboygrim Linux - General 11 04-29-2004 06:17 PM > Forums > Linux Forums > Linux - General

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

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