-
Suid root seems not to work - Getting SUIDcidal ;-)
Greetings!
As I'm using Kanotix (which doesn't seem to have such an extensive forum) and it's based on Knoppix, I figure I'll post this question here.
For a program which will use the parallel port for digital I/O, I'm trying to get access to the port WITHOUT being root (no sudo, either). For this, I've compiled a simple program in C, but it keeps complaining it has no permissions to access the port (/dev/parport0). Port permissions are as follows:
Code:
crw-rw-rw- 1 root root 99, 0 Feb 9 19:40 /dev/parport0
The program has been compiled using gcc -O1 -o test test.c, after which I've issued (as root):
Code:
chown root:users test
chmod u+s test
I figured it should work now, but it doesn't. Keeps complaining about permissions.
Furthermore I've tried creating a file foo.txt and done chmod 600 foo.txt. Then made an executable script bar.sh, which just cat's foo.txt. Then:
Code:
chown root:users bar.sh
chmod u+s bar.sh
Executing bar.sh also gives permission errors. So in other words: what gives? I'm stumped, but I've probably misunderstood how suid root works. Any help would be greatly appreciated.
Thanks in advance,
Marc.
Similar Threads
-
By pterandon in forum General Support
Replies: 0
Last Post: 06-04-2006, 03:41 AM
-
By GameMage in forum General Support
Replies: 2
Last Post: 11-12-2005, 06:44 AM
-
By lestat730 in forum Hdd Install / Debian / Apt
Replies: 8
Last Post: 01-20-2005, 07:05 AM
-
By jackren in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 08-29-2003, 01:02 PM
-
By in forum General Support
Replies: 6
Last Post: 01-27-2003, 05:18 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$145.00

OPNsense Firewall 16-Core Atom C3958 16GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI
$195.00

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED
$999.99

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet
$147.00

PfSense/OPNsense 14x1Gb, 8-Core, 8GB RAM, 80GB SSD, AES-NI, QAT (Lanner FW-7573)
$149.00

Cisco NCS-57C3-MOD-SYS NCS 57C3 Base Chassis Grade A - Dual 1600w Powers
$13000.00

Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN
$219.99

Firewalla Gold Pro 10g Cyber Security Firewall Router
$750.00

Check Point 1590 Firewall & w builtin WiFI and builtin LTE sim slot
$95.99

Unfi Security Gateway Pro
$170.00