LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-29-2011, 04:52 AM   #16
numa
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.

Cheers,

Emmanuel

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

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
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, 08:08 PM   #18
linusero
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
chmod symbolic link

Quote:
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.
 
  


Reply

Tags
suexec


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-14-2005 12:26 AM
Fedora/JPilot Symbolic Link and Chmod get reset on boot tonyzoc Linux - Hardware 3 12-13-2004 02:15 PM
chmod permission change? tidasu Linux - Newbie 7 08-30-2004 07:02 PM
using chmod to change file permission kiwidoc Linux - Newbie 3 07-25-2004 07:39 AM
chmod 755 won't change file permission. duffboygrim Linux - General 11 04-29-2004 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:07 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration