Advertisement
Guest User

Untitled

a guest
May 24th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 KB | None | 0 0
  1. C:UsersJohn>ipconfig /all
  2.  
  3. Windows IP Configuration
  4.  
  5. Host Name . . . . . . . . . . . . : Orion
  6. Primary Dns Suffix . . . . . . . :
  7. Node Type . . . . . . . . . . . . : Hybrid
  8. IP Routing Enabled. . . . . . . . : No
  9. WINS Proxy Enabled. . . . . . . . : No
  10. DNS Suffix Search List. . . . . . : dibnatri.net
  11.  
  12.  
  13. Wireless LAN adapter Wireless Network Connection:
  14.  
  15. Connection-specific DNS Suffix . : dibnatri.net
  16. Description . . . . . . . . . . . : Intel(R) Centrino(R) Wireless-N 1030
  17. Physical Address. . . . . . . . . : [redacted]
  18. DHCP Enabled. . . . . . . . . . . : Yes
  19. Autoconfiguration Enabled . . . . : Yes
  20. IPv4 Address. . . . . . . . . . . : 192.168.1.100(Preferred)
  21. Subnet Mask . . . . . . . . . . . : 255.255.255.0
  22. Lease Obtained. . . . . . . . . . : Tuesday, May 14, 2013 6:47:24 AM
  23. Lease Expires . . . . . . . . . . : Friday, June 20, 2149 1:24:02 PM
  24. Default Gateway . . . . . . . . . : 192.168.1.1
  25. DHCP Server . . . . . . . . . . . : 192.168.1.1
  26. DNS Servers . . . . . . . . . . . : 192.168.1.1
  27. NetBIOS over Tcpip. . . . . . . . : Enabled
  28.  
  29. Ethernet adapter Local Area Connection:
  30.  
  31. Media State . . . . . . . . . . . : Media disconnected
  32. Connection-specific DNS Suffix . : dibnatri.net
  33. Description . . . . . . . . . . . : Realtek PCIe FE Family Controller
  34. Physical Address. . . . . . . . . : [redacted]
  35. DHCP Enabled. . . . . . . . . . . : Yes
  36. Autoconfiguration Enabled . . . . : Yes
  37.  
  38. [snip]
  39.  
  40. C:UsersJohn>net use
  41. New connections will be remembered.
  42.  
  43. There are no entries in the list.
  44.  
  45.  
  46. C:UsersJohn>net use y: /user:john \192.168.1.20Tunes
  47. The password is invalid for \192.168.1.20Tunes.
  48.  
  49. Enter the password for 'john' to connect to '192.168.1.20':
  50. The command completed successfully.
  51.  
  52. Y:>net use
  53. New connections will be remembered.
  54.  
  55.  
  56. Status Local Remote Network
  57.  
  58. -------------------------------------------------------------------------------
  59. OK Y: \192.168.1.20Tunes Microsoft Windows Network
  60. The command completed successfully.
  61.  
  62.  
  63. C:UsersJohn>y:
  64.  
  65. Y:>dir
  66. Volume in drive Y is Tunes
  67. Volume Serial Number is 1D20-98EC
  68.  
  69. Directory of Y:
  70.  
  71. 05/14/2013 06:54 AM <DIR> .
  72. 05/13/2013 02:58 PM <DIR> ..
  73. 0 File(s) 0 bytes
  74. 2 Dir(s) 6,131,715,282,944 bytes free
  75.  
  76. Y:>copy con test1
  77. sss
  78. ^Z
  79. 1 file(s) copied.
  80.  
  81. Y:>dir
  82. Volume in drive Y is Tunes
  83. Volume Serial Number is 1D20-98EC
  84.  
  85. Directory of Y:
  86.  
  87. 05/14/2013 06:56 AM <DIR> .
  88. 05/13/2013 02:58 PM <DIR> ..
  89. 05/14/2013 06:56 AM 5 test1
  90. 1 File(s) 5 bytes
  91. 2 Dir(s) 6,131,715,447,808 bytes free
  92.  
  93. Y:>type test1
  94. sss
  95.  
  96. [johnd:~] $ ifconfig
  97. eth0 Link encap:Ethernet HWaddr [redacted]
  98. UP BROADCAST MULTICAST MTU:1500 Metric:1
  99. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  100. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  101. collisions:0 txqueuelen:1000
  102. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  103.  
  104. lo Link encap:Local Loopback
  105. inet addr:127.0.0.1 Mask:255.0.0.0
  106. inet6 addr: ::1/128 Scope:Host
  107. UP LOOPBACK RUNNING MTU:65536 Metric:1
  108. RX packets:215 errors:0 dropped:0 overruns:0 frame:0
  109. TX packets:215 errors:0 dropped:0 overruns:0 carrier:0
  110. collisions:0 txqueuelen:0
  111. RX bytes:20073 (20.0 KB) TX bytes:20073 (20.0 KB)
  112.  
  113. wlan0 Link encap:Ethernet HWaddr [redacted]
  114. inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
  115. inet6 addr: fe80::4e80:93ff:fe0c:f3a0/64 Scope:Link
  116. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  117. RX packets:2287 errors:0 dropped:0 overruns:0 frame:0
  118. TX packets:1980 errors:0 dropped:0 overruns:0 carrier:0
  119. collisions:0 txqueuelen:1000
  120. RX bytes:1669164 (1.6 MB) TX bytes:761260 (761.2 KB)
  121.  
  122. [johnd:~] $ sudo mount -l
  123. [sudo] password for johnd:
  124. /dev/sda5 on / type ext4 (rw,errors=remount-ro)
  125. proc on /proc type proc (rw,noexec,nosuid,nodev)
  126. sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
  127. none on /sys/fs/cgroup type tmpfs (rw)
  128. none on /sys/fs/fuse/connections type fusectl (rw)
  129. none on /sys/kernel/debug type debugfs (rw)
  130. none on /sys/kernel/security type securityfs (rw)
  131. udev on /dev type devtmpfs (rw,mode=0755)
  132. devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
  133. tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
  134. none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
  135. none on /run/shm type tmpfs (rw,nosuid,nodev)
  136. none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
  137. /dev/sda6 on /home type ext4 (rw)
  138. binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
  139. gvfsd-fuse on /run/user/johnd/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=johnd)
  140. [johnd:~] $ ls /mnt/
  141. [johnd:~] $ sudo mkdir /mnt/tunes
  142. [johnd:~] $ ls -l /mnt/
  143. total 4
  144. drwxr-xr-x 2 root root 4096 May 14 07:04 tunes
  145. [johnd:~] $ ls -l /mnt/
  146. total 4
  147. drwxr-xr-x 2 root root 4096 May 14 07:04 tunes
  148.  
  149. [johnd:~] $ sudo mount -t cifs //192.168.1.20/Tunes /mnt/tunes -o rw,user=john
  150. Password:
  151. [johnd:~] $ ls -l /mnt/
  152. total 0
  153. drwxrwx--- 2 1001 1003 0 May 14 06:56 tunes
  154.  
  155. [johnd:~] 1 $ ll /mnt/tunes
  156. ls: cannot open directory /mnt/tunes: Permission denied
  157. [johnd:~] 1 $ cat>/mnt/tunes/test2
  158. bash: /mnt/tunes/test2: Permission denied
  159. [johnd:~] 2 $
  160.  
  161. uid=xxxx forceuid gid=xxxx forceguid
  162.  
  163. //remote-ip/share /local-path/dir/ cifs credentials=/your-credential-file,iocharset=utf8,uid=local-user-uid,gid=local-group-id,**noperm** 0 0
  164.  
  165. sudo mount -t nfs //192.168.1.20/Tunes /mnt/tunes -o user=john
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement