forsquared.blogg.se

Change share permissions command line
Change share permissions command line











change share permissions command line

  • SetUID, SetGID, and Sticky Bits in Linux File Permissions.
  • ISRO CS Syllabus for Scientist/Engineer Exam.
  • ISRO CS Original Papers and Official Keys.
  • GATE CS Original Papers and Official Keys.
  • To remove a share from a local server using the net share command together the share name of the share to be deleted together with the /DELETE option. Using Net Share to Delete a Share from a Local Server To create a share with comments use the /REMARK argument following by the comment text: C:\Windows\system32>net share MyFolder=c:\users\nas\MyFolder /REMARK:"My SharedFolder" In the following example, full share permissions are granted to user fred while bill is only assigned read permission: C:\Windows\system32>net share MyFolder=c:\users\bill\MyFolder /GRANT:fred,FULL If permissions need to be granted to multiple users or groups, the /GRANT option may be used multiple times in a single net share command.

    change share permissions command line

    For example, the following command creates the MyFolder share assigning full permission to user fred: C:\Windows\system32>net share MyFolder=c:\users\bill\MyFolder /GRANT:fred,FULL In order to grant specific permissions to individual users or groups, the /GRANT option must be used when creating the share to specify the share permissions to be assigned. By default, Windows will assign read permission to Everyone when a share is created without specifying any permissions. In the above example, the folder located at c:\users\bill\MyFolder has been shared using the share name MyFolder. For example: C:\Windows\system32>net share MyFolder=c:\users\bill\MyFolder The most basic of commands simply creates the share and assigns a share name. Perhaps the most common requirement when working with shared files and folders is to create a new share. To obtain information about currently configured shares on a Windows Server 2008 system simply execute the net share command will no command-line options: C:\Windows\system32>net share Getting Share Information using Net Share This can be achieved by right clicking on the Command Prompt in the Start menu and selecting Run as administrator. Note that to perform any tasks other than viewing the current shares, the command-prompt must be running with administrator privileges. In the remainder of this chapter, some of the more common sharing tasks using net share will be covered. DELETEĪs illustrated above, many of the tasks which can be performed using the graphical tools can also be performed using the command line. In basic terms, the syntax for net share is as follows: NET SHARE

    change share permissions command line

    The first step in learning to use the net share command is to gain a basic understanding of the command line syntax of the tool.













    Change share permissions command line