How do I resolve the below error. I want to change the ownership on sf_Temp file from media to dba.
[root@localhost media]# ls -l
drwxrwx--- 1 root vboxsf 0 Feb 1 16:10 sf_Temp
First of all I see your statement is wrong. The directory: sf_Temp is owned by user: root not user: media
Also I noticed that media is just the parent directory, BTW I'm not sure if there is indeed a user: media
So if you want to change the ownership of directory: sf_Temp from user: root to user: dba then try
Hi all
usermod -G Group_id login
it is replacing the existiong Secoundry groups and is adding the only group speced in usermod command
how can we retain the existing secoundry groups and add a user to a new group (6 Replies)
When users login, they are directed to menu (aix script). The menu enables the user to choose an environment to work in. Each environment has a different group id. When a user chooses a menu option, I want to change his primary group to that specific environment's group id. Is this at all possible... (3 Replies)
Dear Folks :-)
I want to rsync some files between some servers and preserve files owner and group (not UID or GID), in some machines UID and GID are differents, for example:
a) In the rsync server:
# stat vbseo.php
File: `vbseo.php'
Size: 26758 Blocks: 56 IO... (1 Reply)
Hi,
i have a problem with a shell script. I need to change the owner and group of a file on a remote machine.
I tried to use ssh but have some problems.
The code:
group=`ssh -t -t $1 -p 3344 "stat -c %G $cpath/FILE"`
echo " $2:$group "
echo $1
echo $cpath
ssh $1 -p 3344 "chown... (5 Replies)
I´m listing the contents of a directory using the command
ls -lI get numeric uid and gid for some lines.
example:
drwxr-xr-x root root 1970-01-01 01:00 sys
-rw-r--r-- 501 20 0 2010-08-04 14:54 shutdown.bravo.rc
drwxr-x--- 501 20 ... (5 Replies)
Hey folks,
When a user is added to a new group, the user has to be log out and log in again to make the new group effective. Is there any system command or technique to refresh user group ID update without re-login?
I am not talking about to use "login" or "su -l" commands which can only make... (2 Replies)
Hi Everyone,
We are encountering the following issue on AIX 5.3. When we do ls -ltr the list displays only user id and group id instead of user name and group name.
This is happening for all users except root. Whe we do ls -ltr with root user it shows perfectly fine.
When we searched... (25 Replies)
I want to add a condition is my find command to include files/sub-directory whose owner or group is all numeric number.
My current find command is
find . \( -user root -o -user soham\) -type f -exec ls -l {} \; 2>&1
---------- Post updated at 10:20 AM ---------- Previous update was at... (5 Replies)
Discussion started by: Soham
5 Replies
LEARN ABOUT HPUX
nsquery
nsquery(1) General Commands Manual nsquery(1)NAME
nsquery - query the Name Service Switch backend libraries
SYNOPSIS
lookup_type lookup_query [lookup_policy]
DESCRIPTION
is used to find the Name Service that returned the response to a or function call. This application is Name Service Switch aware and fol-
lows the lookup policies in The supported lookup_type values are:
Used to resolve host name or IP Address lookups.
Used to resolve user name or UID lookups.
Assumes that a numeric value is a UID. This option is to be obsoleted. Use and instead.
Used to resolve user name lookups.
Used to resolve UID lookups.
Used to resolve group name or GID lookups.
Assumes that a numeric value is a GID. This option is to be obsoleted. Use and instead.
Used to resolve group name lookups.
Used to resolve GID lookups.
Used to resolve host name or IP Address lookups.
Only IPv6 and IPv4-mapped IPv6 address will be displayed for host name lookups.
The lookup_query can either be a host name, IP Address (IPv4 only), user name, user ID, group name, or group ID.
The lookup_policy must be a valid lookup policy described in nsswitch.conf(4). If the policy is invalid, the system default policy will be
used. The default values for lookup_policy are:
dns [NOTFOUND=return] nis [NOTFOUND=return] files
files nis
files nis
dns [NOTFOUND=return] files
will display the lookup policy being used, the name of the service being queried, and the result of the query.
EXAMPLES
Lookup host hondo using the default hosts lookup policy.
Lookup host with ip address 15.204.204.204 using "dns files" as the hosts lookup policy.
Lookup user dog using "ldap" as the passwd lookup policy.
Lookup user ID 105 using the default passwd lookup policy.
Lookup group wayne using group lookup policy "nis [NOTFOUND=RETURN] files".
Lookup group 22 using the default group lookup policy.
Lookup host rio using "dns" as the ipnodes lookup policy.
RETURN VALUE
returns the following values:
Success.
Invalid Usage.
Unknown Action.
No match found in any name services queried.
WARNINGS
The and lookup_type values are to be obsoleted. For use or instead. For use or instead.
AUTHOR
was developed by Hewlett-Packard.
SEE ALSO nsswitch.conf(4).
nsquery(1)