12-05-2007
chmod mode as permision drwxrwsr-x
All,
As first i searched in google but no result . Also i searched in the forum as well.
I am having a directory with permision drwxrwsr-x
i want to create a new directory with same permision . I know S denotes stick bit i tried to creat a directory and modify by chmod as
chmod 7755 XXXX
but no result .. PLease help.
Thanks,
Arun
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I want to know how the file permision should change to 755 automatically once the file is created. At the moment I do it explicitely by changing the permission mode to 755 using chmod command.
The default permission for a new file in my system is 644 (-rw-r--r--).
Thanks
Saumya (6 Replies)
Discussion started by: sommyp
6 Replies
2. UNIX for Dummies Questions & Answers
All,
I am having a directory as
drwxrwsr-x 3 intermec intermec 10240 Jan 8 09:07 intermec
inside the directory . the files are like
cd
-rw-r----- 1 intrmc01 intermec 5226 Dec 2 15:03 AST07356.txt
-rw-r----- 1 intrmc01 intermec 5025 Dec 2 12:51... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies
3. SuSE
Hi All,
I used to have my suse linux(VM) server in graphic mode but not anymore since morning. I cant rolback since i loose somuch work. Any idea how to it back to normal. Thanks (6 Replies)
Discussion started by: s_linux
6 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have a program which at run time creates a shell script and tries to redirect the output of the same to another file. both of the files are created at run time with different names.
The problem is: the file it is redirecting to is being created as:
-rw-r--r-- 1 root tech 69... (1 Reply)
Discussion started by: chandan.sharma
1 Replies
5. UNIX and Linux Applications
i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies
6. UNIX for Advanced & Expert Users
Hi All,
Can please let me know what is the difference between the single line mode and multi line mode in regular expresions?
Thanks,
Chidhambaram B (3 Replies)
Discussion started by: chidhu.anu
3 Replies
7. UNIX for Dummies Questions & Answers
I hava a windows NTFS partition on fedora15. The partitions auto-mounts to /media/Data ever starting of KDE.
/dev/sda5 on /media/Data type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
But I cant change the file permission in this... (1 Reply)
Discussion started by: vistastar
1 Replies
8. Solaris
:confused:
when i tried to look the status of DNS-client, it is in maintenance mode.....
Please tell me how to bring it back to online mode...PLEASE TELL ME STEP BY STEP.... PLEASE...
:wall: (2 Replies)
Discussion started by: vamshigvk475
2 Replies
9. UNIX for Advanced & Expert Users
Hi,
How to change mode "drwxrwsr-x+" in directory.
I'm able to set drwxrwsr-x but "+" is difficult to set.
~ $ las -las | grep done1
4 drwxrwsr-x+ 3 root sfuser 4096 Nov 26 16:39 done1
~ $ getfacl done1
# file: done1
# owner: root
# group: sfuser
# flags: -s-
user::rwx... (4 Replies)
Discussion started by: justbow
4 Replies
10. HP-UX
is there a way for my C++ application to find out which mode the hpux OS is running in?
standard mode or trusted mode. (3 Replies)
Discussion started by: einsteinBrain
3 Replies
fd(4) Kernel Interfaces Manual fd(4)
NAME
fd - file descriptor files
DESCRIPTION
The /dev/fd file system is a pseudo-file system layered beneath the Virtual File System (VFS). The file descriptor files (fd*) are those
files that are accessible through file descriptors. The file descriptors use the naming convention /dev/fd/0, /dev/fd/1, /dev/fd/2 and so
on up to any number.
To make the /dev/fd file system known to the operating system, you must create the directory with the correct privileges, then you must
mount the file system. The following steps describe how to create the directory, mount the file system both manually and automatically,
and how to dismount the file system: Create the directory using the mkdir and chmod commands: mkdir /dev/fd; chmod 777 /dev/fd Mount the
file system manually using the mount command: mount -t fdfs /dev/fd /dev/fd Mount the file system automatically by editing either the
/etc/fstab file or the /sbin/bcheckrc file.
Add the following entry to the /etc/fstab file: /dev/fd /dev/fd fdfs rw 0 0 This entry mounts the pseudodevice /dev/fd on the
/dev/fd directory with read/write privileges. The file system type is fdfs and the zeros (0) in the remaining fields specify that
the file system is not to be backed up nor can file system checks be performed by the fsck command as this is a virtual file system.
Add the following entry to the /sbin/bcheckrc file: # # mount fdfs # echo 'Mounting /dev/fd filesystem' /sbin/mount -a -v -t fdfs
Again, the /dev/fd file system should not be mounted in this manner if an entire system is to be backed up starting from the root
directory. Dismount the file system using the umount command: umount /dev/fd For correct truncate() behavior on fd files, you must
load your program using the -lsys5 flag.
RESTRICTIONS
The /dev/fd file descriptors should not be exported.
EXAMPLES
The following example show how the open and dup functions have the same effect if file descriptor n is opened:
fd = open("/dev/fd/n", mode);
fd = dup(n);
In the above example, the open function is equal to the creat function and mode is ignored. Using the dup function, subsequent reads or
writes on the fd file descriptor files fail unless the original file descriptor enables the operation.
ERRORS
The following error condition exists: The file descriptor is not valid.
RELATED INFORMATION
Commands: chmod(1), mkdir(1), mount(8).
Functions: creat(2), dup(2), open(2). delim off
fd(4)