Hozzászólások
-
SzerzőBejegyzés
-
Nemis ,a harmadik pont nezki a leg egyszerubbnek.
Code:3) make the C wrapper script setuid root
log in as root and type:
chmod u+s /usr/bin/mountpyIgen installalom mindjart a super -t
Igen installalom mindjart a super -t
root nak ez is megy
Code:server:/home/script# mountpy /dev/hdc
Mounted /dev/hdc iso9660
List of mounted devices: /dev/hdc
server:/home/script# umount /dev/hdc
server:/home/script#usernek
Code:script@server:~$ mountpy /dev/hdcmountpy is not being run with enough privileges.
There are 3 ways how to make mountpy run comfortably with root privileges:
1) install sudo, add this line to /etc/sudoers:
joesmith ALL = NOPASSWD: /usr/bin/mountpy, usr/bin/umountpy
to allow user joesmith use mountpy.
It you want to allow all the users use mountpy, change the line into:
ALL ALL = NOPASSWD: /usr/bin/mountpy, usr/bin/umountpy
and then run „sudo mountpy” and „sudo umountpy”
2) install super, add these lines to /etc/super.tab:
mountpy /usr/bin/mountpy.py joesmith
umountpy /usr/bin/umountpy joesmith
to allow user joesmith to run mountpy, or:
mountpy /usr/bin/mountpy.py .*
umountpy /usr/bin/umountpy .*
to give access to all the users, and run „super mountpy” or „super umountpy”
3) make the C wrapper script setuid root
log in as root and type:
chmod u+s /usr/bin/mountpyBe aware that giving all the users rights to execute mountpy can be a
security risk, if an exploitable bug is found in mountpy. This is
especially true in the 3rd case. Therefore, it is recommended to allow
only selected users to run mountpy, and use super or sudo if possible.
Press ENTER to try anyway
Traceback (most recent call last):
File „/usr/bin/mountpy.py”, line 318, in ?
os.setuid(0)
OSError: [Errno 1] Operation not permitted
script@server:~$Megkeresem a super mountpy -t , hatha ossze jon a konfigolasa.
root nak ez is megy
Code:server:/home/script# mountpy /dev/hdc
Mounted /dev/hdc iso9660
List of mounted devices: /dev/hdc
server:/home/script# umount /dev/hdc
server:/home/script#usernek
Code:script@server:~$ mountpy /dev/hdcmountpy is not being run with enough privileges.
There are 3 ways how to make mountpy run comfortably with root privileges:
1) install sudo, add this line to /etc/sudoers:
joesmith ALL = NOPASSWD: /usr/bin/mountpy, usr/bin/umountpy
to allow user joesmith use mountpy.
It you want to allow all the users use mountpy, change the line into:
ALL ALL = NOPASSWD: /usr/bin/mountpy, usr/bin/umountpy
and then run „sudo mountpy” and „sudo umountpy”
2) install super, add these lines to /etc/super.tab:
mountpy /usr/bin/mountpy.py joesmith
umountpy /usr/bin/umountpy joesmith
to allow user joesmith to run mountpy, or:
mountpy /usr/bin/mountpy.py .*
umountpy /usr/bin/umountpy .*
to give access to all the users, and run „super mountpy” or „super umountpy”
3) make the C wrapper script setuid root
log in as root and type:
chmod u+s /usr/bin/mountpyBe aware that giving all the users rights to execute mountpy can be a
security risk, if an exploitable bug is found in mountpy. This is
especially true in the 3rd case. Therefore, it is recommended to allow
only selected users to run mountpy, and use super or sudo if possible.
Press ENTER to try anyway
Traceback (most recent call last):
File „/usr/bin/mountpy.py”, line 318, in ?
os.setuid(0)
OSError: [Errno 1] Operation not permitted
script@server:~$Megkeresem a super mountpy -t , hatha ossze jon a konfigolasa.
cd-info progit nemtudom telepiteni fuggosegei miatt.
Ujra instalaltam az auto mount , autofs ,autofs-hesiod ,es a mountpy csomagokat.
De meg mindig manualisan kell mountolni meg root nak is,viszont ugy legalabb mukodik , csak a felhasznalo nak nincs engedelye hasznalni.cd-info progit nemtudom telepiteni fuggosegei miatt.
Ujra instalaltam az auto mount , autofs ,autofs-hesiod ,es a mountpy csomagokat.
De meg mindig manualisan kell mountolni meg root nak is,viszont ugy legalabb mukodik , csak a felhasznalo nak nincs engedelye hasznalni.Koszonom szepen a segitseget.
Eleg korulmenyes lesz ezt a cd-info progit feltenni . A manualis telepites meg eleg hosszadalmasnak tunik az osszes fuggoseget elokeresni es telepiteni igy 23:30 -korul ugyhogy a folytatast elnapolnam … holnap estig.
Koszi megegyszer.
Koszonom szepen a segitseget.
Eleg korulmenyes lesz ezt a cd-info progit feltenni . A manualis telepites meg eleg hosszadalmasnak tunik az osszes fuggoseget elokeresni es telepiteni igy 23:30 -korul ugyhogy a folytatast elnapolnam … holnap estig.
Koszi megegyszer.
Mindjart 🙂
-
SzerzőBejegyzés
legutóbbi hsz