Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 12071  / 3 Years ago, mon, august 2, 2021, 2:56:57

I need to permit suid for my user account on my ubuntu 13.04.



According to the mount command the bit flag for my account is nosuid.
how do i change it to suid.


More From » permissions

 Answers
6

Does your system have a separate /home partition? if so it's possible that is mounted with the nosuid for good reasons. If this is just a test, then rather than making any persistent changes to your mount options in /etc/fstab, it should be possible to remount the partition temporarily with the suid enabled using



$ sudo mount -o remount,suid /home


For example (since my home partition is not regularly mounted nosuid I'll do that first, for the sake of illustration):



$ ls -l id_demo
-rwsrwxr-x 1 root root 7394 Sep 21 08:52 id_demo
$
$ sudo mount -o remount,nosuid /home
$ ./id_demo
real uid: 1006
effective uid: 1006


Then testing again after remounting with option suid



$ sudo mount -o remount,suid /home
$ ./id_demo
real uid: 1006
effective uid: 0


Note that chmod u+s should be sufficient for your test (chmod a+s should not be necessary).


[#29337] Tuesday, August 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aveerakfas

Total Points: 106
Total Questions: 148
Total Answers: 129

Location: Monaco
Member since Sun, Jan 1, 2023
1 Year ago
;