10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
For a particular set of files, am trying to check if they are writable. i.e., checking whether they are having permissions greater than 755.
Am able to check this using the statement:
"if (os.path.isfile(FILE_PATH) and (os.stat(FILE_PATH).st_mode & 0777) == 0777):"
But the problem... (1 Reply)
Discussion started by: arjun_arippa
1 Replies
2. Programming
Hi,
For a particular set of files, am trying to check if they are writable. i.e., checking whether they are having permissions greater than 755.
Am able to check this using the statement:
"if (os.path.isfile(FILE_PATH) and (os.stat(FILE_PATH).st_mode & 0777) == 0777):"
But the problem here... (0 Replies)
Discussion started by: arjun_arippa
0 Replies
3. Homework & Coursework Questions
i have some question
for example:
suppose we have the Public folder as follows:
https://www.unix.com/attachments/shell-programming-scripting/2759d1334070669-check-permissions-linux-user-capture.png
If user enter:
-Kenshin
or /home/kenshin/Public
output:
abc: kenshin: rw
my shell:... (1 Reply)
Discussion started by: kingkner
1 Replies
4. Shell Programming and Scripting
i have some question
for example:
suppose we have the Public folder as follows:
https://www.unix.com/attachment.php?attachmentid=2759&stc=1&d=1334070669
If the user enter:
-Kenshin
or /home/kenshin/Public
output: abc: kenshin: rw
my shell:
echo "Enter User:"
read user ... (3 Replies)
Discussion started by: kingkner
3 Replies
5. Solaris
hi all
how I can create an ftp user in solaris 10 and have read and write permission on a directory.
Thanks. (1 Reply)
Discussion started by: luisfja
1 Replies
6. Shell Programming and Scripting
hello,
I have to write a script to run the other script inside it.So iam planning to write like this?
first check the perimissions of the file.
Alogorthim
----------
if(!filepermissions == execute)
then
echo" Permissions denined"
else
execute the script.
file name is : load_mf.sh... (1 Reply)
Discussion started by: rajkumar_g
1 Replies
7. Shell Programming and Scripting
Hi - I am trying to send email from unix box but none were delivered. I have tried multiple commands like mailx, mail or sendmail. But none of them worked. can you please let me know how to check if I have the right permissions to send the mail or not? (1 Reply)
Discussion started by: ahmedwaseem2000
1 Replies
8. Shell Programming and Scripting
What I need to do is: I need to use the grep command to search for pattern in directory and sub-directories. And also I need to show the permission of file been seached by the grep command.
Could any one please suggest me?
-----------------
$> cat file1.txt
A
-----------------... (8 Replies)
Discussion started by: Johny001
8 Replies
9. UNIX for Dummies Questions & Answers
I am perplexed that my script execution is not always consistent in creating new files. Specifically, my group read/write/execute permissions. For instance, take a look at the following:
-rw-rw---- 1 jg dp 18648 Aug 22 10:06 nx081508.txt
-rw-rw---- 1 jg dp 22422 Aug 22 10:06... (1 Reply)
Discussion started by: joeyg
1 Replies
10. Programming
do you know how to read file permissions (such as lrwxrwxrwx) by VC++ on Windows OS (ftp connection)?
I use a windows program (coreftp) to download and upload files for my host, this program displays permissions of files, so file permissions can be read by VC++, but I don't know how.
any help... (1 Reply)
Discussion started by: hello20009876
1 Replies