Java web server - the executable permission bits of the file on
the executable permission bits of the file on the Unix side - if it is instructed to do so. Mapping these bits, however, has an unfortunate side-effect: if a Windows user stores a file in a Samba share, and you view it on Unix with the ls-alcommand, some of the executable bits won t mean what you d expect them to. Three Samba options decide whether the bits are mapped: maparchive, mapsystem, and maphidden. These options map the archive, system, and hidden attributes to the owner, group, and world execute bits of the file, respectively. You can add these options to the [data]share, setting each of their values as follows: [data] path = /home/samba/data browseable = yes guest ok = yes writeable = yes map archive = yes map system = yes map hidden = yes After that, try creating a file in the share under Unix - such as hello.java- and change the permissions of the file to 755. With these Samba options set, you should be able to check the permissions on the Windows side and see that each of the three values has been checked in the Properties dialog box. What about the read-only attribute? By default, Samba 2.0 sets this whenever a file does not have the Unix owner write permission bit set. In other words, you can set this bit by changing the permissions of the file to 555. We should warn you that the default value of the maparchiveoption is yes, while the other two options have a default value of no. This is because many programs do not work properly if the archive bit is not stored correctly for DOS and Windows files. The system and hidden attributes, however, are not critical for a program s operation and are left to the discretion of the administrator. Figure 5.7 summarizes the Unix permission bits and illustrates how Samba maps those bits to DOS attributes. Note that the group read/write and world read/write bits do not directly translate to a DOS attribute, but they still retain their original Unix definitions on the Samba server. Figure 5.7: How Samba and Unix view the permissions of a file 159
From our experience, we can recommend PHP5 Web Hosting services, if you need affordable webhost to host and run your web application.