Specifications
VMware, Inc. 175
Chapter 5 Using the VMware Service Console
Setting File Permissions and Ownership
Files!and!directories!on!the!service!console!can!have!read,!write,!and!execute!
permissions.!Those!permissions!can!be!on!or!off!for!the!owner!of!the!file!(generally,!the!
user!who!created!it),!the!specified!group!(generally,!a!group!to!which!the!creator!
belongs),!and!all!other!users!on!the!system.
!Permissions!are!indicated!for!each!file!when!
you!display!a!long!directory!listing,!as!shown!in!Example 5‐1.
[User@vmwareserver win2000]$ ls -la
total 104
drwxr-xr-x 2 User User 4096 Jul 17 11:15 .
drwxr-xr-x 5 User User 4096 Jul 17 09:51 ..
-rw------- 1 User User 8664 Jul 17 16:17 nvram
-rw-r--r-- 1 User User 77763 Jul 18 14:14 vmware.log
-rwxr-xr-- 1 User User 1307 Jul 17 11:20 win2000.vmx
Example 5-1. File permissions
In!Example 5‐1,!in!the!top!two!lines!of!the!directory!listing,!the!first!character!is!the!
letter!d!indicating!the!listing!on!the!line!is!for!a!directory.!The!single!dot!at!the!end!of!
the!first!line!indicates!this!listing!is!for!the!current!directory.!The!two!
dots!at!the!end!of!
the!second!line!indicate!this!listing!is!for!the!parent!of!the!current!directory.
The!first!character!in!the!last!line!is!a!-.!This!indicates!that!win2000.vmx!is!an!ordinary!
file.!The!word!User!in!the!third!column!indicates!the!file!is!owned!by!a
!user!named!
User.!The!word!User!in!the!fourth!column!indicates!the!file’s!owner!is!a!member!of!a!
group!named!User.!
Permissions
Permissions!for!the!owner,!the!specified!group,!and!all!other!users!are!indicated!in!the!
first!column:!-rwxr-xr--.!The!owner’s!permissions!are!specified!first:!rwx!(read,!write,!
and!execute).!Permissions!for!other!members!of!the!group!User!are!r-x!(read!and!
umount Unmount!a!specified!device.
umount /mount/floppy
Unmount!the!device!currently!mounted!at!/mount/floppy.
useradd Add!a!new!user!to!the!system.
useradd newuser
Add!a!new!user!with!a!user!name!of!newuser!to!the!system.
who Show!the!user!names!of!all!users!logged!in!to!the!system.
whoami Show!the!user!name!you!are!currently
!using!on!the!system.
Table 5-3. Linux commands used on the service console (Continued)
Command Example and Explanation