sudo

emueyes

New member
Local time
6:56 PM
Messages
15
Location
Australia
I've tried using the code at http: //sourceforge.net/projects/sudowin/http://sourceforge.net/projects/sudowin/ but haven't had any luck getting it to work.

The Un*x sudo/sudoers setup is so clean in implementation, why is this so hard...
 
Last edited:

My Computer

OS
7 64bit Ultimate
CPU
G620
Motherboard
Gigabyte P8H77-M PRO
Memory
8G GSkill
Graphics Card(s)
Gigabyte 7850 OC 2G
Monitor(s) Displays
Dell U2711, Samsung 204B
Screen Resolution
2650x1440
Hard Drives
Samsung 830 128G, Seagate 1T
PSU
Seasonic S12D
Case
fractal ARC midi
Keyboard
Filco Majestouch2 (blue keys)
Mouse
Logitech 950
Internet Speed
ADSL2+
Probably because this is Windows and not Linux? Just use UAC and Runas.
Code:
C:\Windows\system32>runas /?
RUNAS USAGE:

RUNAS [ [/noprofile | /profile] [/env] [/savecred | /netonly] ]
        /user:<UserName> program

RUNAS [ [/noprofile | /profile] [/env] [/savecred] ]
        /smartcard [/user:<UserName>] program

RUNAS /trustlevel:<TrustLevel> program

   /noprofile        specifies that the user's profile should not be loaded.
                     This causes the application to load more quickly, but
                     can cause some applications to malfunction.
   /profile          specifies that the user's profile should be loaded.
                     This is the default.
   /env              to use current environment instead of user's.
   /netonly          use if the credentials specified are for remote
                     access only.
   /savecred         to use credentials previously saved by the user.
                     This option is not available on Windows 7 Home or Windows 7 Starter Editions
                     and will be ignored.
   /smartcard        use if the credentials are to be supplied from a
                     smartcard.
   /user             <UserName> should be in form USER@DOMAIN or DOMAIN\USER
   /showtrustlevels  displays the trust levels that can be used as arguments
                     to /trustlevel.
   /trustlevel       <Level> should be one of levels enumerated
                     in /showtrustlevels.
   program         command line for EXE.  See below for examples

Examples:
> runas /noprofile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
> runas /env /user:[email protected] "notepad \"my file.txt\""

NOTE:  Enter user's password only when prompted.
NOTE:  /profile is not compatible with /netonly.
NOTE:  /savecred is not compatible with /smartcard.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Indeed, this is Windows, but I was using the Un*x solution as an example of an implemented solution, not as a espousal of its use.

The whole idea of the sudo command is that a prior list of users and programs is established by an Administrator; thereafter those users may execute the selected commands at a higher privilege. The list itself is not editable by normal users of course.

To the best of my knowledge, any variation of runas still requires a password to be entered. That's been stated here several times.

The code at the Sourceforge sudowin site seems ideal, according the the fairly ambitious description by its author, and I was just wondering if anyone else had any experience with it.

Rob
 

My Computer

OS
7 64bit Ultimate
CPU
G620
Motherboard
Gigabyte P8H77-M PRO
Memory
8G GSkill
Graphics Card(s)
Gigabyte 7850 OC 2G
Monitor(s) Displays
Dell U2711, Samsung 204B
Screen Resolution
2650x1440
Hard Drives
Samsung 830 128G, Seagate 1T
PSU
Seasonic S12D
Case
fractal ARC midi
Keyboard
Filco Majestouch2 (blue keys)
Mouse
Logitech 950
Internet Speed
ADSL2+

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top