UNIX File Permission help, please answer the questions in the green boxes. Thank you
As per Chegg policy i can give you answers for first two green boxes.
Box 1 Answers:
1) use "id" command
syntax: id <username>
It will show your userid and to which groups this "user id" is associated with.
2) less /etc/passwd
after issuing this command, in the prompted screen give "/<search_pattern>" and type "n" . It will show you the matched pattern and take to the next match
3) open /etc/group using "vi".
vi /etc/group
now run the following command
:!cat %|grep -c "pattern"
Box 2 answers:
1)
$cd ~ //Change to your home directory
$umask 077
$cat >newfile
some text
^D
$ls -l newfile
-rw------- 1 naresh naresh 5 Feb 12 02:26 newfile
2)
numeral values of read(r)/write(w)/execute(x)
r=4
w=2
x=1
-rwx------- : chmod u=rw,g=0,o=0 <file/directory>
-r-x------: chmod 500 <file/directory>
-rwxr--r--: chmod u=rwx,g=r,o=r <file/directory>
-rwxrw----: chmod u=rwx,g=rw,o=0 <file/directory>
-r-xr--r-x: chmod 545 <file/directory>
UNIX File Permission help, please answer the questions in the green boxes. Thank you Lab 03...
Operating System Lab (CE 351) Lab 6: Users and groups Help: study the file /etc/passwd (page 19 from the notes) Helping commands: useradd passwd userdel groupadd cut grep su Lab exercises: 1. Implement the following tasks: a. Copy the contents of /etc/passwd file separated by space into new.txt file b.Delete a user whose ID is > 1000 ( hint: use shell scripting and the file /etc/passwd)
Step 3: How would you write this script in C? It needs to do the things required in step 3. 1. You have received a new batch of distinguished users; their basic information is located in newusers.tar. Inside of the tar file, there is a file called "newusers.txt" which contains a colon-separated entry for each user: the username, the uid, the GECOS information, and the user's preferred shell. Also in the tar file you will find a public key for...
Cybersecurity Fundamentals Lab #9: Access ControlName: ____________________ If your Kali VM is already up and running, login to the root account on the VM via ssh. It does not matter whether you use a command line or GUI sshclient. If your VM is not currently up, use the vSphere web client to start your VM before logging into it via ssh.1: Create an Unprivileged User For some labs, including this one, we will need a non-root user account on the...
These questions involve the linux operating system. Please complete the questions that you can. Thanks Question 21 (2 points) In the lab, you used the parameter in conjunction with the su command (for example, su -johndoc). It is used to provide an enviranment similar to what the user would expect had the user logged in directly Access the Linux man pages for the su command and provide the definition for the-parameter Question 22 (1 point) Provide the command used to...
//Need help ASAP in c++ please. Appreciate it! Thank you!! //This is the current code I have. #include <iostream> #include <sstream> #include <iomanip> using namespace std; class googlePlayApp { private: string name; double rating; int numInstalls; int numReviews; double price; public: googlePlayApp(string, double, int, int, double); ~ googlePlayApp(); googlePlayApp(); string getName(); double getRating(); int getNumInstalls(); int getNumReviews(); string getPrice(); void setName(string); void setRating(double); void setNumInstalls(int); void setNumReviews(int); void setPrice(double); }; googlePlayApp::googlePlayApp(string n, double r, int ni, int nr, double pr)...