LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-20-2016, 10:21 AM   #1
karanchhabra
LQ Newbie
 
Registered: Apr 2016
Posts: 9

Rep: Reputation: Disabled
Post Special permissions


Hi,

Can we setup suid's for directories?

Thanks.

Karan
 
Old 04-20-2016, 10:35 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by karanchhabra View Post
Hi,
Can we setup suid's for directories?
No. From a small bit of research (which you REALLY should try first):

https://en.wikipedia.org/wiki/Setuid...on_directories
https://www.gnu.org/software/coreuti...nd-Setgid.html
 
Old 04-20-2016, 10:44 AM   #3
karanchhabra
LQ Newbie
 
Registered: Apr 2016
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks. I will!!

Anyways suid is not working for the files either. Situation is shown below:

[root@rhcsa /]# ll -d t.sh
---------- 1 root root 9 Apr 20 12:45 t.sh
[root@rhcsa /]# chmod 4755 t.sh
[root@rhcsa /]# ll -d t.sh
-rwsr-xr-x 1 root root 9 Apr 20 12:45 t.sh
[root@rhcsa /]# su - karan
Last login: Wed Apr 20 15:26:58 IST 2016 on pts/0
[karan@rhcsa ~]$ vim /t.sh
[karan@rhcsa ~]$ """Write operation not working for other users even though suid is setup on the executable file"""

Kindly help.

Karan.

Quote:
Originally Posted by TB0ne View Post
No. From a small bit of research (which you REALLY should try first):

https://en.wikipedia.org/wiki/Setuid...on_directories
https://www.gnu.org/software/coreuti...nd-Setgid.html
 
Old 04-20-2016, 10:54 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by karanchhabra View Post
Thanks. I will!!
Anyways suid is not working for the files either. Situation is shown below:

[root@rhcsa /]# ll -d t.sh
---------- 1 root root 9 Apr 20 12:45 t.sh
[root@rhcsa /]# chmod 4755 t.sh
[root@rhcsa /]# ll -d t.sh
-rwsr-xr-x 1 root root 9 Apr 20 12:45 t.sh
[root@rhcsa /]# su - karan
Last login: Wed Apr 20 15:26:58 IST 2016 on pts/0
[karan@rhcsa ~]$ vim /t.sh
[karan@rhcsa ~]$ """Write operation not working for other users even though suid is setup on the executable file"""
I think it's best if you actually tell us what you're trying to accomplish, rather than having us guess. Your other thread about a file with NO permissions and this, indicate you're trying to do something regarding security.

Perhaps if you told us your goal, we could help. Read the "Question Guidelines" link too...you're not providing many details at all about what kind of system, users, etc.
 
Old 04-20-2016, 11:01 AM   #5
karanchhabra
LQ Newbie
 
Registered: Apr 2016
Posts: 9

Original Poster
Rep: Reputation: Disabled
I am new to linux and learning the internals of it. I am on the special permissions topic and doing some r&d in order to make my understanding of the concepts.

Since i am doing self learning so require some assistance in solving my questions, if possible!!

Thanks.

Quote:
Originally Posted by TB0ne View Post
I think it's best if you actually tell us what you're trying to accomplish, rather than having us guess. Your other thread about a file with NO permissions and this, indicate you're trying to do something regarding security.

Perhaps if you told us your goal, we could help. Read the "Question Guidelines" link too...you're not providing many details at all about what kind of system, users, etc.
 
  


Reply



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
sed command to replace special character in special line rubylu Linux - Newbie 3 04-09-2015 01:45 PM
LXer: Special Permissions of Files In Linux/UNIX LXer Syndicated Linux News 0 05-10-2013 04:40 AM
how to configure apache to write files with special permissions maltune Linux - Software 0 08-03-2005 10:16 AM
mounting fat partitions with special permissions nagromo Linux - Software 1 04-20-2005 07:17 PM
Setting special permissions for USB flash device Shawn Parr SUSE / openSUSE 0 02-19-2005 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:57 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
Open Source Consulting | Domain Registration