Sponsored Content
Special Forums IP Networking Proxy Server Samba on AIX, issues setting read-only flag on files? Post 302939988 by Corona688 on Tuesday 31st of March 2015 12:05:35 PM
Old 03-31-2015
Quote:
Originally Posted by c3rb3rus
Both users belong to the "usr" group, so why can't I logged in as mirte change the read-only flag on the file owned by rober? I can "chown mirte BradTest.p" and then i can modify the read-only flag.
Being in the right group allows you to modify the file, assuming group r/w are set. You still have to be the owner to do things like chmod and chown. This is a property of UNIX permissions, not Samba specifically.
 

10 More Discussions You Might Find Interesting

1. AIX

Setting Up Samba for AIX

Hi all I want to know how do I create a print queue using samba on AIX enviroment to print to file. Setup step require. Anyone please help me on this. Vincent (2 Replies)
Discussion started by: vwong
2 Replies

2. Solaris

Samba 3.0.14 on Solaris 10 issues

Hello All, I am facing a wierd problem with the Samba 3.0.14a on Solaris 10 and CUPS (1.1.12) printing. First of all am not sure if this combination works well. If someone could throw some light, it would be of great help. Samba is setup with security=server, and it is currently a member of... (0 Replies)
Discussion started by: Sapna
0 Replies

3. UNIX for Dummies Questions & Answers

Issues with SAMBA - plz help

Hello. We have 2 HP-UX machines in the same Domain with SAMBA installed and configured. The problem is: From my Windows PC when i try to reach "machine1" by using UNC: \\machine1 I receive the window with all folders available :b: From the same PC when i try to reach "mcahine2" by using... (0 Replies)
Discussion started by: adija
0 Replies

4. UNIX for Dummies Questions & Answers

Help with setting Samba on CentOS

Hello folks; i have Linux CentOS server that is already on my corporate domain and I'm trying to configure Samba so i can browse or see it from my Windows machine. i followed a lot of threads but still can't login when trying to map a drive. Is there a way to setup Samba on that server (with... (2 Replies)
Discussion started by: Katkota
2 Replies

5. Shell Programming and Scripting

setting up a flag inside awk

Hi unix gurus.... i need to set a flag inside awk. i tried many methods for that but couldn't succeed :( like echo "flag= " $flag echo "flag= " ${flag} and so...but not able to show the flag. help me out. i'm using a if condition inside awk... help me out with correct syntax to set a... (7 Replies)
Discussion started by: sukhdip
7 Replies

6. Shell Programming and Scripting

Trouble setting up flag ( getopt) for my script

do case $option in d ) CHEC=true;; # more option processing can go here \? ) echo "Unknown option: -$OPTARG" : ) echo "Missing option argument for -$OPTARG";; * ) echo "Unimplimented option: -$OPTARG";; esac done shift $(($OPTIND - 1)) (2 Replies)
Discussion started by: upenmishra
2 Replies

7. UNIX for Dummies Questions & Answers

Problem in setting up samba server

Hi, I am trying to set-up a samba server at my red-hat machine in order to be accessed via windows, below are my current configuration Linux IP : 192.168.1.6 Windows IP : 192.168.1.2 -- I am able to ping from windows to linux machine : Pinging 192.168.1.6 with 32 bytes of data: Reply... (2 Replies)
Discussion started by: chander_1987
2 Replies

8. AIX

AIX flag to reduce size of shared file

I am using xlC (Version: 11.01.0000.0011). While build i am using "-g" to have debug information in build. there are many object files (>500) due to which resultant shared file (.so) will have huge size. I can't reduce optimization level. Is there any way or flag is present by using which i... (2 Replies)
Discussion started by: Abhi04
2 Replies

9. AIX

AIX 7.1 - Samba 4 File Shares and Integration with Active Directory Issues

Hi. Ive recently upgraded Samba on an AIX server to Samba 4. The aim is to allow a specific group of Windows AD users to access some AIX file shares (with no requirement to enter passwords) - using AD to authenticate. Currently I have: Samba 4 installed ( and 3 daemons running) Installed... (1 Reply)
Discussion started by: linuxsnake
1 Replies

10. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies
CHOWN(8)						    BSD System Manager's Manual 						  CHOWN(8)

NAME
chown -- change file owner and group SYNOPSIS
chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ... chown [-fhv] [-R [-H | -L | -P]] :group file ... DESCRIPTION
The chown utility changes the user ID and/or the group ID of the specified files. Symbolic links named by arguments are silently left unchanged unless -h is used. The options are as follows: -f Don't report any failure to change file owner or group, nor modify the exit status to reflect such failures. -H If the -R option is specified, symbolic links on the command line are followed. (Symbolic links encountered in the tree traversal are not followed.) -h If the file is a symbolic link, change the user ID and/or the group ID of the link itself. -L If the -R option is specified, all symbolic links are followed. -P If the -R option is specified, no symbolic links are followed. Instead, the user and/or group ID of the link itself are modified. This is the default. Use -h to change the user ID and/or the group of symbolic links. -R Change the user ID and/or the group ID for the file hierarchies rooted in the files instead of just the files themselves. -v Cause chown to be verbose, showing files as the owner is modified. The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's actions are determined by the last one specified. The owner and group operands are both optional; however, at least one must be specified. If the group operand is specified, it must be pre- ceded by a colon (``:'') character. The owner may be either a numeric user ID or a user name. If a user name is also a numeric user ID, the operand is used as a user name. The group may be either a numeric group ID or a group name. If a group name is also a numeric group ID, the operand is used as a group name. For obvious security reasons, the ownership of a file may only be altered by a super-user. Similarly, only a member of a group can change a file's group ID to that group. DIAGNOSTICS
The chown utility exits 0 on success, and >0 if an error occurs. COMPATIBILITY
Previous versions of the chown utility used the dot (``.'') character to distinguish the group name. This has been changed to be a colon (``:'') character, so that user and group names may contain the dot character. On previous versions of this system, symbolic links did not have owners. The -v option is non-standard and its use in scripts is not recommended. LEGACY DESCRIPTION
In legacy mode, the -R and -RP options do not change the user ID or the group ID of symbolic links. SEE ALSO
chgrp(1), find(1), chown(2), fts(3), compat(5), symlink(7) STANDARDS
The chown utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compliant. HISTORY
A chown utility appeared in Version 1 AT&T UNIX. BSD
March 31, 1994 BSD
All times are GMT -4. The time now is 11:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy