How to share on cmdline the folder D:\aaa\bbb for User 123 ?

pstein

New member
Member
VIP
Local time
12:15 PM
Messages
244
I am seaching for a way to assign sharing permissions FROM COMMANDLINE
for a particular user with particular permission under Win7 (!). Something like

defineshare -dir=D:\aaa\bbb -user=myuser123 -perm="full access"

As I learned so far there must be built-in or additional prgm like

setowner
setacl
subinacl
cacls

Which of these cmds do I need for mentioned plan?

How would the cmdline look like in detail?

Peter
 

My Computer My Computer

At a glance

win7pro 64bit
Computer type
PC/Desktop
OS
win7pro 64bit
Peter,

I would try typing "net share /?" and you should get all the answers and "flags" you will need. I've never done it this way ,personally, so I can't speak to the difficulty level.

netshare.JPG
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64-bitAMD Phenom II X6 1090T 3.2GHZG.SKILL RipJaw 3x2GB DDR3-10662x HIS Radeon HD 6850 1 GB
OS
Windows 7 Ultimate 64-bit
CPU
AMD Phenom II X6 1090T 3.2GHZ
Motherboard
MSI 890FXA-GD70
Memory
G.SKILL RipJaw 3x2GB DDR3-1066
Graphics Card(s)
2x HIS Radeon HD 6850 1 GB
Sound Card
VIA 8-channel
Monitor(s) Displays
2x 20 inch Acer LCDs, 1x 32" Sony LCD TV
Screen Resolution
4480x900
Hard Drives
1x Crucial 64GB SSD
3x 1TB HDDs (WD, Seagate, Hitatchi)
1x 500GB Seagate External
PSU
Kingwin 1000W Modular
Case
Coolermaster HAF 932
Cooling
1x 120mm, 3x 200mm, CoolerMaster Hyper 212+
Keyboard
Microsoft Wireless Keyboard 1000
Mouse
Microsoft Wiresless Mouse 5000
Internet Speed
20mbps
Other Info
Samsung BD-ROM/DVD-RW
Back
Top