473,473 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how do i copy a folder from another user on linux c++

1 New Member
i have tried this by marking and pasting the text.....but that is highly time taking....how do i make the task simpler?
Aug 1 '10 #1
2 2734
sicarie
4,677 Recognized Expert Moderator Specialist
Have you attempted to use the cp command?

Or are you attempting to do this inside a C++ program?
Aug 2 '10 #2
johny10151981
1,059 Top Contributor
if you want to copy a file using c++ you need to know whether that file has read permission or not.
if the specific file is own by other user and dont have proper read permission for you and you are not root user in that case you simply cannot copy that file. to figure out the permission status using c++ you can see
struct stat
and function
stat()
Aug 4 '10 #3

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

Similar topics

1
by: Sam Kong | last post by:
Hello! We are developing and selling an application which uses Access DB over network. It works fine. However, we encountered a strange case. Computer A(DB Server): Windows 98, Access 97...
2
by: Captain Nemo | last post by:
Hi I seem to remember that in Access 2000 you can sometimes get a bogus error message telling you that a certain table is 'locked by another user', when there is no way that could be true. ...
2
by: caradhras | last post by:
I've been troubleshooting for a friend's charity. She wants their database accessible from both their PCs (I'll call them A & B), which are on a local network, both running A2K on Windows 98. I...
10
by: Steve Bostedor | last post by:
Does anyone have an example of how to file.copy as another user? Do I create a new thread as another user? How is that done? Thanks!
2
by: Dámaso Velázquez Álvarez | last post by:
Hi, I need to copy files to a shared folder protected by username/password. I don't now autenticate me in the server to copy the files. Do I need to use the credentials to do it? How can i do...
10
by: JA | last post by:
I keep getting this error: The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time. There is no other user....
3
by: wish | last post by:
Hi, How to copy folder in linux thru network?
3
by: Ryan Liu | last post by:
hi, I like the Publish function comes with VS2008. But 3 questions remain: how to make update path to be flexiable? Because I will give those updates to my cutomers, and different cutomer will...
5
by: mamul | last post by:
Hi All, Could you please someone help me. Thanks in advance. Actually my application is building fine. when i tries to run this from visual studion run option, it showing me error . But this is...
1
by: mventrella | last post by:
I need to create another user in the data base with the same rights and priveleges as an existing user. Have not been able to do this can someone point me in the right direction. So when I copy the...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.