473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to change file permissions using java

Hi i wanted to know if there is a java API for changing file permissions for a file on linux OS
Aug 17 '07 #1
6 9948
JosAH
11,448 Expert 8TB
Hi i wanted to know if there is a java API for changing file permissions for a file on linux OS
I bet you haven't read the API docs for the File class.

kind regards,

Jos
Aug 17 '07 #2
I bet you haven't read the API docs for the File class.

kind regards,

Jos
Which file API are you taking about i want to change owner and group permissions of a file
Aug 21 '07 #3
r035198x
13,262 8TB
Which file API are you taking about i want to change owner and group permissions of a file
Google would have easily given you want you're looking for. Just search for File.java

The Java articles index also has a link to the API docs. Bookmark it.
Aug 21 '07 #4
JosAH
11,448 Expert 8TB
Which file API are you taking about i want to change owner and group permissions of a file
Ahem, second attempt: have you read the API documentation for the File class?
Hint: pay special attention to the class name in boldface.

kind regards,

Jos
Aug 21 '07 #5
r035198x
13,262 8TB
Ahem, second attempt: have you read the API documentation for the File class?
Hint: pay special attention to the class name in boldface.

kind regards,

Jos
We should have audio streaming software here. Then people don't have to read what's posted.
Aug 21 '07 #6
JosAH
11,448 Expert 8TB
We should have audio streaming software here. Then people don't have to read what's posted.
You're being too optimistic again: you're assuming that they can *listen* ;-)

kind regards,

Jos
Aug 21 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: vikashskumar | last post by:
Hello everone, I am stuck in determining whether a file does not exist or does not have enough permissions so that access to this file is denied?". I am using java.io.File.exists() or...
1
by: Dave Lambert | last post by:
Hi, hope someone can help, I would like to change permissions on a folder and wondered if it is possible as part of an automated install, the reason being we have created an install for an asp.net...
3
by: Peter | last post by:
Hello, Two newbie questions: 1) I have a javascript file with a function in it. From this function I want to access a variable in another javascript file -which is not inside a function. I...
6
by: jonathanmcdougall | last post by:
I have read many posts on this subject and found no satisfying answer. I am creating a file on the server via a PHP script. The file is created using GD (imagejpeg()), though I don't think it is...
5
by: Peter Verhelst | last post by:
Hello, Currently I am running an Access database on a windows WTS server, running Microsoft Windows 2000 server 5.00.2195 Service Pack 3. This database should be accessible for everybody in our...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
2
by: Tim Murray | last post by:
First of all, I don't know much about Java, even its naming and version numbering nomenclature, and second, if there is a better group to ask this in, please let me know. System is Mac with...
1
by: Aek | last post by:
What is the best way to recursively change the permissions of the directory we are installing into? Is there a nice way to do this in C# ..NET? We are using an MSI installer and will need to add...
1
by: Fredo | last post by:
I know very little about java and javascript, and I'm not really sure if this is a java or javascript issue. I'm trying to run an app call jmol in a local browser. jmol is activated by a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.