User Profile
Collapse
-
It change ownership jk to root. But I want to do this at the time of creating the file by jk. -
# chgrp redhat /linux
I forget to write above line. After that
su - jk
$ cd /data
$ touch a b
$ ls -l
-rw-rw-r-- 1 jk redhat 0 Dec 21 01:48 a
-rw-rw-r-- 1 jk redhat 0 Dec 21 01:48 b
I want that when i create files in /data directory as jk a group member of redhat, at the time of creating the file that file owned by root user.Leave a comment:
-
No i didn't receive any error message b'coz i am running chown root /root/linux command as a root and root is already owner of that directory. I just want to do -
# useradd jk ; passwd -d jk
# useradd kk; passwd -d kk
# mkdir /data
# groupadd redhat
# usermod -G redhat jk ; usermod -G redhat kk
# chmod g+ws /data
# su - jk
$ cd /data
$ touch a b
Now as a user jk as a group member...Leave a comment:
-
How to give root ownership to directory or files in directory?
I am log in as user student and i want that if i make any file in a particular directory is owned by root at the time of creation of file or sub-directory.
I used chown root /root/linux as a root user but it didn't work. -
-
about history control
i am using export HISTCONTROL=ign oreboth command after that history command, history is not storing repeated command but when i use this command export HISTCONTROL=ign oredups then it also work as previous command.
i can't understand the difference b/w both. plz define both and what is work of both command. -
Using !$ command
I am using clear command and after that !$ then it clear the screen again. Again i use the !$ command then it provide help about clear command using man command.
what is doing !$ command, i can't understand. Plz help.
No activity results to display
Show More
Leave a comment: