What would be the group of file1 and file2 after executing all these commands?

As a Linux administrator, you have executed the commands as shown below:
[root@server1 ~]# useradd -g red smith
[root@server1 ~]# id smith
uid=513(smith) gid=515(red) groups=515(red)
[root@server1 ~]# groupadd -o -g 515 readers
[root@server1 ~]# groupadd -o -g 512 writers
[root@server1 ~]# usermod -G readers,writers,apps smith [root@server1 ~]# su – smith
[smith@server1 ~]$ touch file1 file2
[smith@server1 ~]$ logout
[root@server1 ~]# usermod -g apps smith
[root@server1 ~]# groupdel red
What would be the group of file1 and file2 after executing all these commands?

As a Linux administrator, you have executed the commands as shown below:
[root@server1 ~]# useradd -g red smith
[root@server1 ~]# id smith
uid=513(smith) gid=515(red) groups=515(red)
[root@server1 ~]# groupadd -o -g 515 readers
[root@server1 ~]# groupadd -o -g 512 writers
[root@server1 ~]# usermod -G readers,writers,apps smith [root@server1 ~]# su – smith
[smith@server1 ~]$ touch file1 file2
[smith@server1 ~]$ logout
[root@server1 ~]# usermod -g apps smith
[root@server1 ~]# groupdel red
What would be the group of file1 and file2 after executing all these commands?

A.
Red

B.
Apps

C.
Smith

D.
Writers

E.
Readers



Leave a Reply 0

Your email address will not be published. Required fields are marked *